def even_checker(lst):
for x in lst:
if x%2==0:
print(x)
l = [1,2,3,4,5,6,7,8,9,10]
even_checker(l)
I wrote my code in python 3.8. I hope this helps.
3.6m questions
4.6m answers