[Tutor] Adding all numbers in a file or list

Sander Sweers sander.sweers at gmail.com
Mon Aug 23 17:33:10 CEST 2010

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.


PS: Please use reply to all so others on this list may benefit from
the questions/answers ;-)

More information about the Tutor mailing list