Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 8: Functions and Control Flow in Python!
Instruction
Modifying Arguments and Mutability
In Python, a variable is a name that refers to an object stored in memory, also known as an object reference. Python uses a pass-by-object-reference system. If an argument is changed in a function, the changes are kept or lost depending on the object's mutability. A mutable object can be modified after creation, so a function's changes to the object then appear outside the function. An immutabl...