function that accepts any amount of arguments?

Terry Reedy tjreedy at udel.edu
Thu Apr 24 04:41:50 EDT 2008


"globalrev" <skanemupp at yahoo.se> wrote in message 
news:4d0b5d7a-b4ff-4bb3-99e5-5579e89573e0 at w7g2000hsa.googlegroups.com...
| if i want a function that can take any amount of arguments how do i
| do?
|
| lets say i want a function average that accepts any number of integers
| and returns the average.

To add to the other comments, read the ref manual section of function defs. 






More information about the Python-list mailing list