r/learnmachinelearning • u/Sea-Ad7805 • 1d ago
Python Mutability: tuple vs list
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.
3
Upvotes
View all comments
Show parent comment
1
u/Sea-Ad7805 1d ago edited 14h ago
"Immutable" does not mean "constant", it means if you change it a copy is made so the old value is preserved. Same with immutable
intandstr:See visualization by memory_graph.