← Backend PythonQuestion 10 of 49
What’s the difference between shallow and deep copy in Python?
📘 Explanation
A shallow copy duplicates only the outer container while still referencing the same nested objects, whereas a deep copy recursively duplicates everything inside. The other options get the definitions backwards or incorrectly claim no difference exists for mutable objects.
Related questions
← PreviousNo login needed