Skip to content
Home » Python program to print even numbers in a list

Python program to print even numbers in a list

Below is the Python program to print even numbers in a list

lst=list(eval(input("Enter list numbers:")))
for i in lst:
if i%2==0:
print(i)

Output:

Enter list numbers:2,5,3,6,8,1
2
6
8