Launch Countdown

Python FundamentalsMedium+10 XP+10

Launch Countdown

A rocket game shows a countdown before launch.

Task: write countdown(start) that returns a list counting down from start to 1.

  • start is a whole number, 0 or more. If it's 0, there's nothing to count, so return an empty list.

Examples

start = 5
returns [5, 4, 3, 2, 1]
start = 3
returns [3, 2, 1]

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run