When I assign one list to another, I see that upon changing one of the elements in one list, the other element is automatically assigned with that value.
What is the reason for this behavior?
>>> a = [1,2,3] # create a list
>>> b = a
>>> b
[1, 2, 3]
>>> id(a)
40307408
>>> id(b)
40307408
>>> a[2] = 5
>>> b
[1, 2, 5]
>>> b[1] = 10
>>> a
[1, 10, 5]