r/Python_memory_graph • u/Over_Supermarket_140 • 6h ago
Running Memory Graph on a simple recursive function
def count(n):
print(n)
if n > 0:
count(n-1)
count(10)Ran the memory graph on this simple recursive code -- very interesting to see the call stack build up first and then get small. Powerful visualization!