This code seems to work for any list of numbers that I pass it yet I still get the error:
Does your purify function take exactly one argument (a list of numbers)?
Your code threw a "unsupported operand type(s) for %: 'list' and 'int'"
Is python treating my variable num as a list?
Thank you for any responses!
def purify(*numbers): evens =  for num in numbers: if num % 2 == 0: evens.append(num) return evens print purify(4,6,2,3,4,7,9,2)