csc-python-solutions/16/8 - Fractal Ruler.py

8 lines
99 B
Python
Raw Normal View History

2021-02-17 13:11:12 +00:00
def ruler(n):
if n == 1:
print('-')
else:
ruler(n - 1)
print(n * '-')
ruler(n - 1)