error:Oops, try again. Your function crashed on [1] as input because your function throws a "list.remove(x): x not in list" error.Please help :cry:


Please post your code


I solved the problem but still, thanks :wink:


def purify(numbers):
sequence = []
for f in sequence:
if f%2 -1: //filters out non even(odd),alternative to if f%2 == 0:
sequence.append(f) //populates the sequence list with even numbers
return sequence //returns list with even numbers.