Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. n = int(input('Введите переменную n:'))
  2. m = int(input('Введите переменную m:'))
  3. A = []
  4. B = []
  5. C = []
  6. for i in range(n):
  7. for j in range(m):
  8. A.append(i and j)
  9. if i%2 == 0 and j%2 == 0:
  10. B.append(i and j)
  11. else:
  12. C.append(i and j)
  13. print(A)
  14. print(B)
  15. print(C)
  16. #A.append(int(j) for j in input().split()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement