Simple question - I want a loop that counts up and returns to 0 when it reaches a certain number.
Tried something like:
while i < 7:
i += 1
if i == 7
i -= 1 #(or change i in any other way - you get the idea)
My Python actually crashed when I tried the above.
EDIT: Yes, the if
condition is never met - it still crashes when I change it to if i == 6
though.