livepython.net

84. Python Program to Print a Countdown

Mediumrange()

Overview

Count backwards with the third number of range(): the step.

Problem Statement

Read a whole number n (1 or more). Print the numbers from n down to 1, each on its own line, then Liftoff!. For example, for 5:

5
4
3
2
1
Liftoff!

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

5

Output

The output for that example:

5
4
3
2
1
Liftoff!

The tests try 3 different inputs.

Learn this firstChapter 10 · Python range() Function in a for Loop
solution.py
# write your code here

EXPECTED OUTPUT

15
24
33
42
51
6Liftoff!

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.