Turn parameters into a dictionary : Function Dictionary Parameters : Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Function   » [  Function Dictionary Parameters  ]  Screenshots 
 



Turn parameters into a dictionary




def f(**args): print args

print f()

print f(a=1, b=2)


           
       
Related examples in the same category
1.  Function parameters: using the double asterisk operator Function parameters: using the double asterisk operator
2.  Collecting Parameters Collecting Parameters
3.  Parameter passing: mixed with dictionary and tuple Parameter passing: mixed with dictionary and tuple
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.