Python language
Shallow copy
A copy of a container whose elements are still references to the same nested objects.
Why interviewers ask about it
`a.copy()`, `list(a)` and `{**d}` are all shallow. Mutating a nested list shows through both copies. `copy.deepcopy()` fixes it and is far more expensive - know both facts.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.