My code seems to be unable to remove 2 uneven numbers in a row, how come is that? probably something with the loop.
this is what it should do:
Define a function called purify that takes in a list of numbers, removes all odd numbers in the list, and returns the result.
def purify(apport): newapport = apport for i in newapport: if i % 2 != 0: newapport.remove(i) return newapport