Hello, I cant figure out how this actually would work for every situation, instead of when the list got only exactly two kinds of the same number. Can someone continue my thought of doing this function

Oops, try again. remove_duplicates([6, 8, 122, 2, 18]) returned [8, 8, 8, 8, 122, 122] instead of [8, 122, 18, 2, 6]

I can understand that my code is working for only if a number appears twice

```
def remove_duplicates(list):
newlist = []
counter = 2
for i in list:
for j in list:
if i == j :
counter = counter - 1
if counter == 0:
newlist.append(i)
return newlist
```