Hi there,

Can someone can explain me how stop my code from double writing the following output: `[0, 2, 3, 3]`

?

I understand why it happens that way, but I don’t know how to overcome it.

Code:

```
#Write your function here
def same_values(lst1, lst2):
x = []
for i in lst1:
for j in lst2:
if i == j:
x.append(lst1.index(i))
i += 1
return x
#Uncomment the line below when your function is done
print(same_values([5, 1, -10, 3, 3], [5, 10, -10, 3, 5]))
```