30 - 'Call by Assignment' in Python

Veröffentlicht am: 21 November 2023
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video 30 - 'Call by Assignment' in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Software Development with Ed 21 November 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 55 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!