Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pyramid(n):
- for row in range(n):
- print(' ' * (n - row) + '*' * row + '*' * (row + 1))
- pyramid(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement