0
Please can anyone give a detailed explanation of the difference between the methods "copy and deepcopy" in python3
2 Answers
+ 1
The difference between shallow and deep copying is only relevant for compound objects (objects that contain other objects, like lists or class instances): A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original.
+ 1
@ TechTro Thanks