Questions tagged [loop]
The loop tag has no usage guidance.
5
questions with no upvoted or accepted answers
1
vote
0
answers
362
views
pset2 - Bulbs - reversing array turns out wrong
I managed to make the right sequence of binary code (in reverse).
Next, I do a for loop for reversing it, but it prints out wrong. I have no idea what happens, as the original array is correct, ...
0
votes
1
answer
6
views
where am i making mistake here? problem set2 substitution
hey here i am trying to return 0 if argument string contains all 26 alphabet characters
otherwise function should return 1 and print message]1 ]
0
votes
1
answer
30
views
help with python loops
I am trying to make a program for myself, not really related to any particular problem set.
The issue I am having is that I want a loop to iterate over a block of code and force the user to give one ...
0
votes
1
answer
20
views
Final Project - if statement with regex not working?
Working on my final project and I'm stuck trying to edit user input.
The below code should take the first string in a list and check if it's numeric. If it is, great, that's what I want, otherwise, I ...
0
votes
2
answers
61
views
Why the if statements don't work when I put them into loops? Caesar PSET2
Help, please.
The program works fine until I want to add the loops and when I do that the if statements inside it won't work and it will just ask for the key and will output the same text as the input ...