well, agree with me that if you have the list 4,5,5,4 that the items are indexed at 0,1,2 and 3? So, now python is going to loop over this values, at index 0, nothing has to be done (number is even), at index 1 we have to remove
5 since it is odd, now we continue to index 2, however, because we just delete a number, the second
5 (located index 2) has shifted to index 1. Meantime, we are at index 2, which now holds the value 4. OOPS.
Can you solve this problem? Yes, with a a try except IndexError and a while loop, which is getting pretty tricky. It is much easier to append even numbers to a new lists. Hope this helps, do ask if you have any questions