Purify help


why is this not working?

def purify(numbers):
  new_list = []
  for x in numbers:
    if x %2 == 0:
      return new_list


Move the return statement to the left so it is outside of the loop.


thanks that worked :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.