30 - 'Call by Assignment' in Python

Publicado el: 21 noviembre 2023
en el canal de: 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.


En esta página del sitio puede ver el video en línea 30 - 'Call by Assignment' in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Software Development with Ed 21 noviembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 55 veces y le gustó 2 a los espectadores. Disfruta viendo!