Countdown
Counts down from 10 to 1 and lifts off. Teaches the for loop with step -1.
Open in Tokbit Level: Beginner. Free in the browser, nothing to install, no account needed.
Run the example in Tokbit and step through it: before each step say what will happen and check it in the Variables panel. Then change it your way.
Flowchart
Python program
The same program as Python code. In Tokbit you see it when you switch from Diagram to Python above the flowchart.
"""Counts down from 10 to 1. Teaches a for loop with a step."""
# Step -1 counts down; 0 is not printed, the range excludes its end.
for i in range(10, 0, -1):
print(i)
print("LIFT OFF!")
Follow-up tasks
Tasks in which you change the example (with a model solution):