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:

all 6 comments

sorted by: hot top controversial new old
[–] 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
  • [–] 1 point 1 year ago (1 child)

    I so wonder what a will result in.

  • source
  • hideshow 1 child comment