1 Задание:
a = [
[3, 4],
[40, 5, 6, 2],
[70, 8, 9, 11],
[20, 3, 14, 68]
]
count = 0
for i in a:
for j in i:
if j % 2 == 0:
count = count + 1
print(count)
2 Задание:
[3],
[-15, 4, 11],
[12, -7, 8],
[-9, 7, 6]
a.remove(max(a))
print(a)
Числа можете вставить любые.
1 Задание:
a = [
[3, 4],
[40, 5, 6, 2],
[70, 8, 9, 11],
[20, 3, 14, 68]
]
count = 0
for i in a:
for j in i:
if j % 2 == 0:
count = count + 1
print(count)
2 Задание:
a = [
[3],
[-15, 4, 11],
[12, -7, 8],
[-9, 7, 6]
]
a.remove(max(a))
print(a)
Числа можете вставить любые.