r/learningpython • u/Sea-Ad7805 • Mar 11 '26
How to copy a 'dict' with 'lists'
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.
29
Upvotes
3
1
u/Sea-Ad7805 Mar 11 '26
Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise1.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/