Unit 2 Task 9 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 9: Bus departure countdown

← Back to task


One possible program:

minutes_until_departure = int(input("Minutes until departure: "))

for remaining_minutes in range(minutes_until_departure, 0, -1):
    print(remaining_minutes)