Shallow copy
a = [[1,2,3],[4,5,6]]
b = list(a)
print(id(a[0]))
print(id(b[0]))
# Output
2033801422336
2033801422336If using shallow copy, when we edit list a element instance also edit this element in list b.
from copy import deepcopy
c = deepcopy(a)
print(id(a[0]))
print(id(c[0]))
# Output
2033801422336
2033801600000