Create 8 - Fractal Ruler.py

This commit is contained in:
Lukas Baumann 2021-02-17 14:11:12 +01:00 committed by GitHub
parent 911e5a3bd8
commit dced50b0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
16/8 - Fractal Ruler.py Normal file
View File

@ -0,0 +1,7 @@
def ruler(n):
if n == 1:
print('-')
else:
ruler(n - 1)
print(n * '-')
ruler(n - 1)