r/Python_memory_graph • u/Sea-Ad7805 • Oct 05 '26
r/Python_memory_graph • u/Sea-Ad7805 • Sep 21 '26
How do we turn, say €24.72, into coins? 🪙🪙💰⛀⛁
r/Python_memory_graph • u/Sea-Ad7805 • Jul 10 '26
Recursive solution to the Tower of Hanoi problem
r/Python_memory_graph • u/Sea-Ad7805 • May 21 '26
Python Data Model exercise for right metal model for Python data
r/Python_memory_graph • u/Sea-Ad7805 • Aug 25 '25
Memory Graph Web Debugger
🧠 Understand what your Python code is really doing by memory_graph visualization, despite the difficulties of the Python Data Model:
references
mutable vs immutable data types
function calls and variable scope
sharing data between variables
shallow vs deep copy
🧩 For example, what is the output of this program?
import copy
def fun(c1, c2, c3, c4):
c1[0].append(1)
c2[0].append(2)
c3[0].append(3)
c4[0].append(4)
mylist = [[0]]
c1 = mylist
c2 = mylist.copy()
c3 = copy.copy(mylist)
c4 = copy.deepcopy(mylist)
fun(c1, c2, c3, c4)
print(mylist) # What do you expect?💥 See the live demo in Memory Graph Web Debugger.
r/Python_memory_graph • u/Sea-Ad7805 • Aug 20 '26
Adding objects to set or dictionary: equality and hashing
r/Python_memory_graph • u/Sea-Ad7805 • Apr 23 '26
What's the difference between List copies in Python?
r/Python_memory_graph • u/Sea-Ad7805 • Apr 23 '26
Data Structure Visualized using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵
r/Python_memory_graph • u/Sea-Ad7805 • Sep 18 '25
Understand the Python Data Model and Data Structures
Better understand the Python Data Model or Data Structures by memory_graph visualization with just one click:
r/Python_memory_graph • u/Sea-Ad7805 • Jul 21 '25
Python Mutability
Changing a value of immutable type results in an automatic copy
Changing a value of mutable type causes it to mutate in place
🧠 Understand the Python data model better using memory_graph.
🎥 Watch the explainer on Python Mutability.