mutation — why your code mysteriously breaks4 / 9
shallow copy, deep copy, and the nested-dict bug
Two operations on copy_rows. One mutates a shared inner list. One adds a
new outer item. What does printing rows show?
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _