** works for keyword arguments : Varible length parameter : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Varible length parameter »

 

** works for keyword arguments


def f(**args): print args

f(  )
f(a=1, b=2)
def f(a, *pargs, **kargs): print a, pargs, kargs
f(123, x=1, y=2)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Function
» Varible length parameter