Please I am trying to solve the "Time up" puzzle and I don't know what's wrong .I need to move to another level. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Please I am trying to solve the "Time up" puzzle and I don't know what's wrong .I need to move to another level.

# take the number as input number = int(input()) #use a while loop for the countdown while number>0: print(number) number = number-1

4th Sep 2023, 9:24 PM
Bukola oladiti
Bukola oladiti - avatar
1 Antwort
+ 4
You have an Infinite loop because your indentation is wrong. Try indenting the last line. The reason for the Infinite loop is because the variable 'number' never changes since it is outside of the loop.
4th Sep 2023, 9:27 PM
Keith
Keith - avatar