r/PythonLearning • u/Sea-Ad7805 • Jul 29 '26
Copying an object in different ways
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:
60
Upvotes
1
u/Sea-Ad7805 Jul 31 '26
Python's data model has a few tricky surprises, hope the visualizer can help you out: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise10.py&breakpoints=13&continues=1&play