SiteMap  | About    

Is Python call-by-value or call-by-reference?

In terms of official Python documentation ,arguments are passed by assignment in Python. The actual parameters (arguments) to a function call are introduced in the local symbol table of the called function when it is called; thus, arguments are passed using call by value (where the value is always an object reference, not the value of the object). Thus, if you change the value of the parameter within a function, the change is reflected in the calling function . (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.