In Python, "change" can mean two different things. Assignment changes which object a variable points to. Mutation, changes the object itself.
Article at https://pym.dev/assignment-versus-mut...
More #Python screencasts at https://pym.dev/screencasts/
00:00 Variables in Python are pointers
00:27 Mutating a list
01:07 Mutation
01:35 Assignment
02:19 Assignment vs mutation
03:03 Changing variables and changing objects
Watch video Assignment vs Mutation in Python online without registration, duration hours minute second in high quality. This video was added by user Python Morsels 18 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 39 once and liked it 2 people.