passing the parameters by name : Default Arguments : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Default Arguments »

 

passing the parameters by name


def fun(name, location, year=2006):
    print "%s/%s/%d" (name, location, year)

fun(location="L.A.", year=2004, name="Caleb" )



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Default Arguments