Задание 1:
import random
a = [random.randint(1,10) for i in range(10)]
print(a)
counter = 0
for i in range(len(a)):
if a[i] % 2 == 0:
counter += 1
print(counter)
Задание 2:
mark = [int(input()) for i in range(15)]
for i in range(len(mark)):
if mark[i] > 10:
Задание 1:
import random
a = [random.randint(1,10) for i in range(10)]
print(a)
counter = 0
for i in range(len(a)):
if a[i] % 2 == 0:
counter += 1
print(counter)
Задание 2:
counter = 0
mark = [int(input()) for i in range(15)]
for i in range(len(mark)):
if mark[i] > 10:
counter += 1
print(counter)