r/PythonLearning • u/Sea-Ad7805 • Aug 29 '25
Copying Objects
See the Solution and Explanation, or see more exercises.
1
Upvotes
r/PythonLearning • u/Sea-Ad7805 • Aug 29 '25
See the Solution and Explanation, or see more exercises.
1
u/deceze Aug 29 '25
copy.copydoes a shallow copy. In this example, there's only a single list to be copied, so a shallow copy is all that's necessary.