Abatoor

Untitled

Dec 13th, 2021
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. def pyramid(param:int):
  2.     result = []
  3.     for i in range(param):
  4.         arrrrrrrrrrrrrrrrrrrrrrrrr=[]
  5.         for f in range(param-i):
  6.             arrrrrrrrrrrrrrrrrrrrrrrrr.append(1)
  7.         result.append(arrrrrrrrrrrrrrrrrrrrrrrrr)
  8.  
  9.     result.reverse()
  10.     return result
  11.  
  12.     print(pyramid(0))
  13.     print(pyramid(1))
  14.     print(pyramid(2))
  15.     print(pyramid(3))
  16.     print(pyramid(4))
Advertisement
Add Comment
Please, Sign In to add comment