Python uses a model called 'passing by object reference' rather than traditional call-by-value or call-by-reference. When a variable is passed to a function, Python passes a reference to the object it points to. The key behavior depends on whether the object is mutable or immutable: immutable types (int, str, tuple) cannot be
Table of contents
Table of ContentsCall by Value and Call by Reference ExplainedWhat Python Does InsteadConclusionSort: