Sep-24-2018, 01:30 PM
Uppercase is typically used to indicate constants that have been set elsewhere.
When you call a function, you can specify the names of the parameters (i.e. the names in the function definition), for clarity (and to ignore ordering of arguments).
Arguments can be either actual values or variables (or constants, which are just variables).
Note. Sometimes actual values will not give you desired outcomes such as when a reference to a mutable object is required by the function that is intended to mutate the object. Using an actual value (e.g. an in-situ list) in such a case will mean there is no reference to the mutated object after the call is completed.
When you call a function, you can specify the names of the parameters (i.e. the names in the function definition), for clarity (and to ignore ordering of arguments).
Arguments can be either actual values or variables (or constants, which are just variables).
def func(paramx, paramy, paramz=defaultz, ...):
func(paramx=valuex, paramy=valuey, paramz=valuez, ...)
Note. Sometimes actual values will not give you desired outcomes such as when a reference to a mutable object is required by the function that is intended to mutate the object. Using an actual value (e.g. an in-situ list) in such a case will mean there is no reference to the mutated object after the call is completed.
I am trying to help you, really, even if it doesn't always seem that way