Unit: Unit 3: Loops • Interactive Practice
Interactive Python programming tutorial and practice in your browser.
# Part 1: Step by 2 (Even numbers between 2 and 10 inclusive)
print("--- Even Numbers ---")
for even in range(2, 11, 2):
print(even)
# Part 2: Negative Step (Rocket launch countdown from 5 to 1)
print("--- Countdown ---")
for t in range(5, 0, -1):
print("T minus", t)
print("Blast off!")