[Tutor] Adding all numbers in a file or list
aug dawg
augdawg09 at gmail.com
Mon Aug 23 17:35:20 CEST 2010
Oh okay, sorry about that.
Thanks for the help!
On Mon, Aug 23, 2010 at 11:33 AM, Sander Sweers <sander.sweers at gmail.com>wrote:
> On 23 August 2010 17:24, aug dawg <augdawg09 at gmail.com> wrote:
> > So it's sum(list_name) ?
>
> Correct, but it is not limited to lists. Any itterable with
> ints/floats will do, for example a tuple is also accepted.
>
> Greets
> Sander
>
> PS: Please use reply to all so others on this list may benefit from
> the questions/answers ;-)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100823/d3ea9cc1/attachment.html>
More information about the Tutor
mailing list