Why doesnt this work? Should I convert it into a list separately?
This is the error that it shows : line 4, in purify
TypeError: not all arguments converted during string formatting
def purify(numbers): purified =  for i in numbers: if i%2 == 0: purified.append(i) return purified numbers = list(raw_input("Enter the list here: ")) print purify(numbers)