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:

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (1 child)

Why can't it just return the result but has to use the same names in both scopes, I hate it

It's a nice exercise and a cool visualization though

  • source
  • hideshow 1 child comment