Send Close Add comments: (status displays here)
Got it!  This site "www.robinsnyder.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
Python: Passing actual parameters
by RS  admin@robinsnyder.com : 1024 x 640


1. Python: Passing actual parameters
There are many ways to pass actual parameters in Lua.

Consider the following program. All ways of calling result in the same output. There are many variations of these methods.

2. Lua example of routine calls
Here is the Python code [#1]

Here is the output of the Python code.




3. kwargs
The kwargs way of passing parameters is especially useful in, say, a class method or module routine whereby there are a huge number of possible parameters, with defaults.

Adding another parameter then is easy and scales up to large number of parameters.

4. End of page

by RS  admin@robinsnyder.com : 1024 x 640