Write a program to print Even Numbers in a List


Topic: Write a program to print Even Numbers in a List

Solution

list1 = [10, 21, 4, 45, 66, 93] 
for num in list1: 
    if num % 2 == 0: 
       print(num, end = " ") 
       



List all Python Programs