I am getting the correct o/p but system prompts me "Oops, try again. Your function fails on purify(). It returns [2, 4, 6, 8] when it should return .", Though when i checked for purify() as input, my output was , i.e correct.
hence why the prompt??
new =  def purify(num): for key in range(0, len(num)): if num[key]%2 == 0: new.append(num[key]) return new print purify()