# Blastoff! import time n = 5 while n >= 0: if (n == 0): print("Blastoff!") else: print(n) n -= 1 time.sleep(1) ############## import time def countdown(n): print("Going in %d" % n) if (n <= 0): print("Blastoff!") return time.sleep(1) countdown(n - 1) time.sleep(1) print("Going out %d" % n) countdown(5) print("Done")