Before launch, the rocket counts down. Write countdown(n) to return [n, n-1, …, 1], or an empty list when n is 0. No loop this time: let the function call itself, since countdown(n - 1) is the rest of the list.
countdown(3)→[3, 2, 1]countdown(0)→[]def countdown(n):
if n == 0:
return []
# your code here: n first, then countdown(n - 1) (instead of return [])
return []
Run tries the examples. When they look right, Submit.