mix different methods of passing the parameters : Default Arguments : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Default Arguments »

 

mix different methods of passing the parameters


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

fun("Aedan", year=2005, location="London")



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Default Arguments