Exercise is remove_duplicates 14. in 15. practice makes perfect.
Codeacademy passes me on this exercise, but it only gives me the first number in the list, which occours more than once. It should however remove all numbers which occour more than once from the list.
Maybe I am taking the wrong approach here.?
def remove_duplicates(x): new_list =  for i in x: if x.count(i) > 1: return i return new_list.append(i)