r/PythonLearning • u/Sea-Ad7805 • 27d ago
Python List Operations and Aliasing
An exercise to help build the right mental model for Python data.
The βSolutionβ link uses π¦ππ¦π¨π«π²_π π«ππ©π‘ to visualize execution and reveals whatβs actually happening.
0
Upvotes
View all comments
Show parent comment
1
u/Sea-Ad7805 23d ago
Yes, that's one way of looking at it, another is that
b + [4]creates a new value that is then assigned tob.