I don't know why my code couldn't work.
Could anyone explain the reason to me?
Oops, try again. Your code looks a bit off--it threw a "list assignment index out of range" error. Check the Hint if you need help!
def purify(numList) : evenList =  n = 0 for x in numList : if x % 2 == 0 : evenList[n] = x n += 1 return evenList print purify([1,2,3,4,5])