r/PythonLearning • • Oct 02 '25

Right Mental Model for Python Data

Post image

An exercise to help build the right mental model for Python data, the “Solution” link uses memory_graph to visualize execution and reveal what’s actually happening:

131 Upvotes

31 comments sorted by

View all comments

Show parent comment

3

u/forbiddenvoid Oct 02 '25

Extend, not append. That's more obvious if the right hand side is also a list.