Question: Python question for assistance Write a function called countdown_10 that takes an integer as a parameter, then prints a countdown of 10, starting with the

Python question for assistance

Write a function called countdown_10 that takes an integer as a parameter, then prints a countdown of 10, starting with the passed integer. If the countdown reaches 0, the function should print "Blast off!", then stop printing and exit. For full credit, you must define a function, and use at least 1 loop and at least 1 decision statement.

Example output for input 20:

20

19

18

17

16

15

14

13

12

11

Example output for input 5:

5

4

3

2

1

Blast off!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!