My code is returning the following error
Oops, try again. Your function fails on purify(). It returns  when it should return .
I expected the code to be correct as it is returning what it should. I believe the error may be with my brackets .
def purify(numbers): purified =  for num in numbers: if num % 2 == 0: purified.append([num]) return str(purified[0:]) print purify([1,2,3,4,5,6,7,8,9,2,4,6])
The output from the above is:
[, , , , , , ]
What's the issue?