Basically i want to fix the code but i dont understand how (Please use beginner stuff)
number = 5 print("Countdown!") while True: print(number) number = number - 1 if number > 0: break print("Now!")
I want it to print
Countdown!
5
4
3
2
1
Now!
submitted by /u/Disastrous-Jello1992
[link] [comments]
r/learnpython Basically i want to fix the code but i dont understand how (Please use beginner stuff) number = 5 print(“Countdown!”) while True: print(number) number = number – 1 if number > 0: break print(“Now!”) I want it to print Countdown! 5 4 3 2 1 Now! submitted by /u/Disastrous-Jello1992 [link] [comments]
Basically i want to fix the code but i dont understand how (Please use beginner stuff)
number = 5 print("Countdown!") while True: print(number) number = number - 1 if number > 0: break print("Now!")
I want it to print
Countdown!
5
4
3
2
1
Now!
submitted by /u/Disastrous-Jello1992
[link] [comments]