r/PythonLearnersHub • • Jan 02 '26

Python Data Model exercise, Mutability.

Post image

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: - Solution - Explanation - More exercises

37 Upvotes

45 comments sorted by

View all comments

Show parent comment

1

u/Sea-Ad7805 Jan 02 '26

Incorrect, b = a does NOT assign a copy of a to b. Check the "Solution" and "Explanation" link for true understanding of the Python Data Model.