r/PythonLearnersHub • u/Sea-Ad7805 • Mar 05 '26
Python Assignment, Shallow and Deep Copy
An exercise to help build the right mental model for Python data.
The โSolutionโ link uses ๐บ๐ฒ๐บ๐ผ๐ฟ๐_๐ด๐ฟ๐ฎ๐ฝ๐ต to visualize execution and reveals whatโs actually happening. It's instructive to compare with these earlier exercises:
11
Upvotes
1
3
u/Sea-Ad7805 Mar 05 '26
Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise13.py&play
Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model
More exercises: https://www.reddit.com/r/Python_memory_graph/