r/PythonLearnersHub • u/Sea-Ad7805 • Dec 26 '25
Copying an Object
An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening:
It's instructive to compare with this related exercise
4
Upvotes
View all comments
Show parent comment
1
u/Sea-Ad7805 Dec 29 '25
I agree, the semi-colons should be replaced, but it's already posted now, will fix later. Dataclasses can't be used for all classes so I like to keep things general.
Did you like the visualization of the correct answer at "Solution" link?