Guest User

Untitled

a guest
Dec 15th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def triangle(line):
  2. arr = [1]
  3. for n in range(line):
  4. print(arr)
  5. arr = [1] + [arr[i] + arr[i+1] for i in range(0, len(arr)-1)] + [1]
Add Comment
Please, Sign In to add comment