python:
from random import randint
lst = [randint(0, 20) for _ in range(10)]
n = int(input('x = '))
print(*filter(lambda x: x == n, lst))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
python:
from random import randint
lst = [randint(0, 20) for _ in range(10)]
n = int(input('x = '))
print(*filter(lambda x: x == n, lst))