I’m a little confused b/c I ran my code on my desktop console and it works fine. then when i run it on codeacademy it says this:
" Your remove_duplicates modifies the list that was passed to it. [4, 5, 5, 4] was modified to [4, 5]. Perhaps you should make a copy first! "
But have I not removed the duplicates? My code is copied below
y = x
leng = len(y) - 2
for i in range(0,leng):
if y[i] == y[i+1]: