Below is examples of passing arguments to python via regular argument assignment, and tuples and *tuples, and dictionaries and **dictionaries.

Here is my gist link for it: (older)

Not covering all methods (for example didnt cover default values if argument is not passed although default values for none stated argument can be achieved if *arg & *kargs are in the function prototype/definition), but most of them covered in the test script below
builds upon:
* and (added test cases to this one)

Study the output and play around with the script to get better understanding
I ran it like this “python
Im using python 2.7.3

Test Python Script:


The end

Leave a Reply

Your email address will not be published. Required fields are marked *