Understanding def foo(*args)

Ben Finney ben+python at benfinney.id.au
Sun Jan 30 17:08:23 EST 2011


sl33k_ <ahsanbagwan at gmail.com> writes:

> I am struggling to grasp this concept about def foo(*args). Also, what
> is def bar(*args, *kwargs)?

Please work through the Python Tutorial from start to finish
<URL:http://docs.python.org/tutorial/>, performing each exercise and
experimenting with it until you understand. You will then have a good
grounding in basics of the language like this.

-- 
 \     Lucifer: “Just sign the Contract, sir, and the Piano is yours.” |
  `\     Ray: “Sheesh! This is long! Mind if I sign it now and read it |
_o__)                                later?” —http://www.achewood.com/ |
Ben Finney



More information about the Python-list mailing list