Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input('Введите переменную n:'))
- m = int(input('Введите переменную m:'))
- A = []
- B = []
- C = []
- for i in range(n):
- for j in range(m):
- A.append(i and j)
- if i%2 == 0 and j%2 == 0:
- B.append(i and j)
- else:
- C.append(i and j)
- print(A)
- print(B)
- print(C)
- #A.append(int(j) for j in input().split()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement