Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_pyramide(height: int = 5) -> None:
- for i in range(1, height + 1):
- print(' '*(height-i) + ('* '*i)[:-1]) # [:-1] is optional (Just removing the last space)
- make_pyramide()
Advertisement
Advertisement