function being called by passing the parameter values in order. : Default Arguments : Function PYTHON TUTORIALS


PYTHON TUTORIALS » Function » Default Arguments »

 

function being called by passing the parameter values in order.


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

fun("Teag""San Diego")



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Function
» Default Arguments