2 of 6
You're building a rocket launch countdown! Use a while loop to count down from a starting number to 1, then print "Liftoff!"
Expected output (start = 5):
5
4
3
2
1
Liftoff! π
count = 5 while count > ___: print(count) count -= ___ print("Liftoff! π")
The loop should keep running while count is greater than 0: while count > 0:
Subtract 1 from count each time through the loop: count -= 1
Without this line, the loop would run forever!
β Standard library: heapq, collections, itertools, math, random, functools, datetime, bisect
β Functions, classes, recursion, print()
β No file system, subprocess, OS access, or network requests
β No pip install (all supported modules are pre-loaded)
β±οΈ 5 second execution time limit