I was doing this exercise and looked around at the forums to get some help, and i have this code now. When I call the function like this -
it returns -
[1, 2, 3] None
Then i can go to the next exercise even though it didn't just return duplicates. My code is below. What can i change to do this correctly?
def remove_duplicates(x): loop =  for i in x: if i not in loop: loop.append(i) return loop print remove_duplicates([1,1,2,3,3])