вот ответ с новым кодом,
Homework 2
Enter the number of elements in the list: 7
Add a number to the list: 76
Add a number to the list: 77
Add a number to the list: 79
Add a number to the list: 45
Add a number to the list: 41
Add a number to the list: 43
Add a number to the list: 83
Your list includes: [76, 77, 79, 45, 41, 43, 83]
Your new list is [76, 79, 41, 83]
>>>
print "Homework 2"
num_el=input("Enter the number of elements in the list: ")
new_li=[]
for x in range(num_el):
your_num=input("Add a number to the list: ")
new_li.append(your_num)
print "Your list includes: ", new_li
for i in new_li:
if i%2:
new_li.remove(i)
print "Your new list is",new_li
может, ошибка в другом месте?