You have a list of the same [0, 0]
element 10 times here:
l=[[0,0]]*10
Any time you modify one, it modifies them all, because they're the same list.
One safe way to make them unique would be:
l = [[0, 0] for _ in range(10)]
One easy way to check would be to print the id
of each, which is the memory address where it's stored:
>>> for element in l:
... print id(element)
...
34669128
34669128
34669128
34669128
34669128
34669128
34669128
34669128
34669128
34669128