Forezz

ДЗ 11 Н 3

Aug 1st, 2019
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. x = 6
  2. y = 6
  3. a = [[None] * x for i in range(y)]
  4. for i in range(x):
  5.     a[0][i] = 1
  6. for i in range(1, y):
  7.     a[i][0] = 1
  8. for i in range(1, y):
  9.     for j in range(1, x):
  10.         a[i][j] = a[i - 1][j] + a[i][j -1]
  11. for i in range(len(a)):
  12.     print(a[i])
Advertisement
Add Comment
Please, Sign In to add comment