I have already passed this exercise. However, I tried to find out another way … which didn’t work.
Like always I am confused.
Here’s the code:
def purify(x): #x is our list argument for i in x: if i % 2 != 0: # if a value in the list is not even... del i # ... then this value shall be deleted ... return x #... and x shall return purified
That’s the error message:
Your function fails on purify(). It returns  when it should return .
What’s wrong with the code?
Thanks in advance!