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