All problems
EasyControl Flow
While loop countdown
Count down from 5 to 1 using a while loop, then print "go!".
- #while
- #loops
Sample input
start = 5
Sample output
5 4 3 2 1 go!
while-countdown.py
Output
Press "Run code" to execute.
Loading…
Count down from 5 to 1 using a while loop, then print "go!".
start = 5
5 4 3 2 1 go!
Press "Run code" to execute.