Your function crashed on [1] as input because your function throws a "'int' object is not iterable" error.

my code is
def purify(lists):
for numbers in lists:
if numbers % 2 != 1:
return numbers
return numbers


You return numbers twice and your method for establishing whether the number is even doesn't look right.

Here's my code:

number % 2 == 0 sees if the number divided by 2 has a remainder of 0 proving that it is divisible by 2 (even)


prefer to do in one line, surely it's not readable but concise, just fyr...

def purify(numbers):
return [w for w in numbers if w%2 ==0]


that's correct one thank you