Mega Code Archive
Categories
/
Python Tutorial
/
Function
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" )