import random
a = list()
x = 0
for i in range(13):
a.append(random.randint(0,20))
print(f"a = {a}")
for i in range(len(a)):
if int(a[i]) <= 10:
x+=1
print(f"Кол-во чисел которые не превышают 10: {x}")
Python
from random import randint
a = []
for _ in range(13): a.append(randint(0, 20))
print(*a)
print(sum(map(lambda item: item <= 10, a)))
import random
a = list()
x = 0
for i in range(13):
a.append(random.randint(0,20))
print(f"a = {a}")
for i in range(len(a)):
if int(a[i]) <= 10:
x+=1
print(f"Кол-во чисел которые не превышают 10: {x}")
Python
from random import randint
a = []
for _ in range(13): a.append(randint(0, 20))
print(*a)
print(sum(map(lambda item: item <= 10, a)))