An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise19.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model

The “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://lnkd.in/e3sUM7wG

#Python #memory_graph #ShallowCopy #DeepCopy

How to Prevent Object Spread From Being Shallow

Spread copies only the first level.

#javascript #spread #shallowcopy #bug #howto #objects

https://www.youtube.com/watch?v=G-1X1F8fG7w

How to Prevent Object Spread From Being Shallow #javascript

YouTube

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:
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise10.py&breakpoints=13&continues=1&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model

If you think this could help Python students and educators, please boost.

#Python #programming #memory_graph #DeepCopy #ShallowCopy