Distinguish shallow copies from deep copies of nested structures.
Constraints
Example
>>> original = [[1, 2], [3, 4]] >>> orig, deep, shallow = check_copy_behavior(original) >>> orig [[1, 2, 99], [3, 4]] >>> deep [[1, 2], [3, 4]] >>> shallow [[1, 2, 99], [3, 4]]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints