Running below code
x = [1, [2,3, [4,5,6]]]
y = x[:]
x[0] = 55   # impacted only x
x[1][0] = 66   # impacted x & y
x[1][2][1] = 79   # impacted x & y
print(x,y)
This code gives the result as below
[55, [66, 3, [4, 79, 6]]], [1, [66, 3, [4, 79, 6]]]
x[0] = 55 not impacted y. But x[1][0] = 66 & x[1][2][1] = 79 impacted both x & y. What is the correct reason?
 
     
    