12/15 Help with purify


#1

def purify(lst):
----result = []
----for l in lst:
--------if l % 2 == 0:
--------result = result.append(l)
----return result

It gives me an error saying: Your code looks a bit off--it threw a "'NoneType' object has no attribute 'append'" error. Check the Hint if you need help!


#2

Here is the problem - just append "l" to result without saying that result is equal to result.append(l):

--------if l % 2 == 0:
-----------result.append(l)