+2 votes
in Class 12 by kratos

How are arguments passed – by reference or by value ?

1 Answer

+6 votes
by kratos
 
Best answer

In Python everything is an object and all variables hold references to objects. The values of these references are to the functions. As a result you can not change the value of the reference but you can modify the object if it is mutable. Remember, numbers, strings and tuples are immutable, list and diets are mutable.

...