30 - 'Call by Assignment' in Python

Published: 21 November 2023
on channel: Software Development with Ed
55
2

Python uses a mechanism often referred to as "call by assignment". When a function is called, the references to objects are passed to the function. If the object is mutable (e.g., a list or dictionary), changes made to the object within the function are reflected outside the function. However, if the object is immutable (e.g., a tuple or integer), the changes made within the function do not affect the original object outside the function.

It's crucial to understand that the actual values of the arguments are not passed; rather, the references to objects are passed, and the behavior depends on mutability.


On this page of the site you can watch the video online 30 - 'Call by Assignment' in Python with a duration of hours minute second in good quality, which was uploaded by the user Software Development with Ed 21 November 2023, share the link with friends and acquaintances, this video has already been watched 55 times on youtube and it was liked by 2 viewers. Enjoy your viewing!