Advertisement
AliaksandrLet

pyramid

May 14th, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. def pyramid(n):
  2.     for row in range(n):
  3.         print(' ' * (n - row) + '*' * row + '*' * (row + 1))
  4.  
  5. pyramid(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement