From 808ac8a0f53214f2357a38bc940938791cbf4a9f Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Wed, 17 Feb 2021 12:44:36 +0100 Subject: [PATCH] Create 2 - Double Time.py --- 16/2 - Double Time.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 16/2 - Double Time.py diff --git a/16/2 - Double Time.py b/16/2 - Double Time.py new file mode 100644 index 0000000..9307ec8 --- /dev/null +++ b/16/2 - Double Time.py @@ -0,0 +1,6 @@ +def countdownBy2(n): + if n < 1: + print('Blastoff!') + else: + print(n) + countdownBy2(n - 2)