I have a list x
which contains another list object
as below:
x = [ [1, 0] ]
Now, I am performing the concatenation operation on the list x
a = x + x
a[0][0] = 100
print(a)
Output:
[[100, 0], [100, 0]]
Here, I have not updated value of a[1][0]
but it is still modified. What is causing this?