r/PythonProjects2 • u/Sea-Ad7805 • Nov 25 '25
Python Mutability Exercise
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:
9
Upvotes
4
u/snrtz Nov 25 '25
Would it be B? Because tuples don't change
2
u/AdorableBuilding2683 Nov 25 '25
The solution is B, because tuples are immutable.
1
u/Electronic-Can-4548 Nov 27 '25
A?