12/15 Help with purify


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!


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

--------if l % 2 == 0: