According to the feedback window, my code throws a "'NonType' object is not iterable" error. The task was to define a function that only returns the even numbers in the input. So I created an empty list, "new_num" to put the results in, and then looped through the input, "num", to append the even numbers into "new_num".
Although I just started learning python about a month ago, I don't really understand the reason why my code doesn't work. Thanks for pointing out my errors.
def purify(num): new_num= for i in num: if i%2==0: new_num.append(x)