Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread it's me
And in case it's not obvious already, you get the number of arguments that got passed down from: len(args) "Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > rbt wrote: > > How do I set up a function so that it can take an arbitrary number of > > arguments? For examp

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread Steven Bethard
rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? If you haven't already, you should check out the Tutorial: http://docs.python.org/tut/node6.html#SECTION00673 How might I make this dynamic so that it can handle any amount of expenses? de

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread rbt
Nick Coghlan wrote: rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I mak

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread Nick Coghlan
rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I make this dynamic so t

arbitrary number of arguments in a function declaration

2005-01-02 Thread rbt
How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I make this dynamic so that it can