Mega Code Archive

 
Categories / Python Tutorial / Function
 

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")