Write a python program to print even numbers in a list


Topic: Write a python program to print even numbers in a list

Solution

list1  = [2,7,5,64,14]
for i in list1:
    if i%2==0:
        print(i,end=" ")



List all Python Programs