from random import randint
a = [randint(0, 20) for i in range(10)]
print(a)
print(max([x for x in a if x < 15 and x > 3]))
Объяснение:
from random import randint
a = [randint(0, 20) for i in range(10)]
print(a)
print(max([x for x in a if x < 15 and x > 3]))
Объяснение: