Mega Code Archive

 
Categories / Python Tutorial / Function
 

Keyword and Default Examples

def f(a, b, c): print a, b, c f(1, 2, 3) 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(1, 4) f(1, 4, 5) f(1, c=6)