From dced50b0eff03f3ed5c9316dee85e93a7fe96cb0 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Wed, 17 Feb 2021 14:11:12 +0100 Subject: [PATCH] Create 8 - Fractal Ruler.py --- 16/8 - Fractal Ruler.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 16/8 - Fractal Ruler.py diff --git a/16/8 - Fractal Ruler.py b/16/8 - Fractal Ruler.py new file mode 100644 index 0000000..c95fcf7 --- /dev/null +++ b/16/8 - Fractal Ruler.py @@ -0,0 +1,7 @@ +def ruler(n): + if n == 1: + print('-') + else: + ruler(n - 1) + print(n * '-') + ruler(n - 1)