import random
b = [random.randint(-10,50) for i in range (1,20)]
x = int(input("x = "))
print(b)
for q in b:
----if q > x:
--------print(q,end=' ')
Пример:
x = 5[-7, 47, 19, 6, 0, -6, 48, -4, 33, -1, 5, 14, 28, 19, 25, 40, -1, 23, 4]47 19 6 48 33 14 28 19 25 40 23