Le Thu, 5 Feb 2009 08:57:15 -0000, "Alan Gauld" <alan.ga...@btinternet.com> a écrit :
> > "amit sethi" <amit.pureene...@gmail.com> wrote > > > How do you pass arguments of unknown no. of arguments to a function. > > search the docs for *args and *kwargs > Or simply pass a tuple: def myPrint(thing): print thing thing_of_things = (1,'a',[True]) myPrint(thing_of_things) ==> (1,'a',[True]) Denis ------ la vida e estranya _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor