Keyword and Default Examples : Keyword Arguments : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Keyword Arguments »

 

Keyword and Default Examples


def f(a, b, c): print a, b, c

f(123)
f(c=3, b=2, a=1)
f(1, c=3, b=2)

def f(a, b=2, c=3): print a, b, c
f(1)
f(a=1)
f(14)
f(145)
f(1, c=6)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Keyword Arguments