← Code LabPython0/50 solved · 0%
Foundations · hard

42. Shallow vs deep copy

Understand shared references.

Write `independent_copy(nested)` that returns a fully independent deep copy of a nested list, so mutating the copy never affects the original.
Required in your answer: copy.deepcopy