Anonymous user
Optional parameters: Difference between revisions
m
→{{header|Python}}
Line 522:
See the Python entry in [[Named_Arguments#Python|Named Arguments]] for a more comprehensive description of Python function parameters and call arguments.
Note that expression for a default argument of an optional parameter is evaluated only once, when the function definition is
<pre>
>>> def foo(x, lst=[]):
|