Does Python Allow Arguments Pass By Value Or Pass By Reference?


Neither the arguments are Pass by Value nor does Python supports Pass by reference. Instead, they are Pass by assignment.

The parameter which you pass is originally a reference to the object not the reference to a fixed memory location. But the reference is passed by value. Additionally, some data types like strings and tuples are immutable whereas others are mutable.


© 2017