[Tutor] Scope and elegance

Tiger12506 keridee at jayco.net
Wed Jan 9 04:12:57 CET 2008


> Thanks Tiger12506!
> 
> This has helped me understand the function(*tuple) syntax, as well as
> providing me with a concrete example.
> 
> James

Cool. ;-)
Here's another, totally unrelated to counters and boards.
Kinda the opposite use of the * syntax I used earlier.

def printall(*li):
  for x in li:
    print x

printall(1)
printall(1,"yes")
printall(2,1,'y',3.14)

Cheers,
Tiger12506


More information about the Tutor mailing list