May-21-2020, 03:23 PM
The reason for this is that your code is checking to see if num is even, when you really want to be checking list1[num]:
# checking condition if list1[num] % 2 == 0: print(list1[num], end=" ")