I I do not understand why this code is not working
Define a function called purify that takes in a list of numbers, removes all odd numbers in the list, and returns the result.
For example, purify([1,2,3]) should return .
x = [1,2,3,4,5,6,7,8]
for n in x:
if n%2 == 0:
I get the error
Oops, try again. Your function fails on purify([4, 5, 5, 4]). It returns [, ] when it should return [4, 4].