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
[–] 3 points 1 year ago (3 children)

It's always fun to guess whether python will call __add__ or __iadd__.

  • source
  • hideshow 3 child comments