Please can you assist me with my code below. I think it really is a very small error I am making - I am not sure if perhaps I have made a mistake when creating a copy of my original list or not?
Thank you in advance.
Oops, try again. remove_duplicates([4, 5, 5, 4]) returned  instead of [4, 5]
def remove_duplicates(x): x =  new_list = list(x) for data in x: if data not in new_list: new_list.append(data) return new_list