Create 8 - Fractal Ruler.py
This commit is contained in:
parent
911e5a3bd8
commit
dced50b0ef
7
16/8 - Fractal Ruler.py
Normal file
7
16/8 - Fractal Ruler.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
def ruler(n):
|
||||||
|
if n == 1:
|
||||||
|
print('-')
|
||||||
|
else:
|
||||||
|
ruler(n - 1)
|
||||||
|
print(n * '-')
|
||||||
|
ruler(n - 1)
|
Loading…
Reference in New Issue
Block a user