my code works good, but I keep getting this error:
Oops, try again. Your remove_duplicates modifies the list that was passed to it. [4, 5, 5, 4] was modified to [5, 4]. Perhaps you should make a copy first!
even though I created 2 copies of the list handed to me, but I keep getting this error
to let me keep going, since I think the code is good, I also checked it in PyCharm
def remove_duplicates(a_list): new_list=a_list another_list=a_list for i,item in enumerate(another_list): for j,item_2 in enumerate(new_list): if item==item_2 and i != j: new_list.remove(item) return new_list