I get the error message: "Oops, try again. Your function fails on purify([4, 5, 5, 4]). It returns [4, 5, 4] when it should return [4, 4]. "
The iteration skips an element, even thought I'm not modifying the list I'm iterating over. I don't know why.
def purify(numbers): result = numbers for number in numbers: if number % 2 == 1: result.remove(number) return result