Kodewick
Start learning →
Starter←→0 / 100

Countdown

#013StarterLoops2 min

The little rocket is ready! Use a loop to count down from 5 to 1, one number a line, then show Liftoff! on the last line.

Should show
5
4
3
2
1
Liftoff!
main.py
for n in range(5, 0, -1):
    # your code here: show n
    pass

print("Liftoff!")
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.