What's the difference between a shallow copy and a deep copy in Python? When does that difference matter?
~4 min by voice
How to approach it
The interviewer wants to see whether you understand Python's reference model: what gets copied on assignment, with a shallow copy and with a deep copy. And whether you can predict when a change to the copy will "leak" into the original.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.