#setting and defining the variable
list_of_numbers = [4,5,6, 7, 8, 9, 10]
#creating a for loop
for num in list_of_numbers:
    #setting the condition
    if num % 2 == 0:
        #printing the set of numbers and ensuring there are spaces in between
        print(num, end = " ")