csc-python-solutions/16/2 - Double Time.py

7 lines
101 B
Python
Raw Normal View History

2021-02-17 11:44:36 +00:00
def countdownBy2(n):
if n < 1:
print('Blastoff!')
else:
print(n)
countdownBy2(n - 2)