Implement a rocket launch countdown.

To do this we would create a function with a simple loop that iterates downwards and prints the numbers downwards. Then at the end of the loop we would simply print 'blast off'.def countdown (n): while n > 0: print (n) n = n - 1 print ("blast off")

MM

Related Python Mentoring answers

All answers ▸

Write a program that can convert between celcius and farenheit temperature scales


Print "Hello World!" ten times without typing (or pasting) the print function more than once


Write a recursive function that takes any integer n and prints the nth Fibonacci number.


How might we implement the bubble sort algorithm in Python