Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def line(n, x):
- if n == 0:
- return
- print(x, end=" ")
- line(n - 1, x)
- def triangle(n):
- if n == 0:
- return
- triangle(n - 1)
- line(n, n)
- print("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement