r/learnmachinelearning • u/Sea-Ad7805 • 28d 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.
6
Upvotes
1
u/voidiciant 28d ago
uhm, as per „explanation“, this should only happen for immutable types, not for the mutable list. What is wrong here?
3
u/[deleted] 28d ago
[removed] — view removed comment