here is my code
> def remove_duplicates(x): > q = x > for i in range(len(q)-1): > for y in range(len(q)-2): > if q[i] == q[y]: > q.remove(q[i]) > y = y+1 > return q
it return 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!
i don't know why ?? thank in advance