Mega Code Archive
Categories
/
Python Tutorial
/
Function
Parameters can also be passed as a tuple using the syntax
def fun(name, location, year=2006): print "%s/%s/%d" % (name, location, year) tuple = ("DaNae", "Paris", 2003) fun(*tuple)