[Tutor] Sum of List Elements
luke.jordan at gmail.com
Sat Sep 24 17:11:34 CEST 2005
I have spent an embarrassingly large amount of time trying to solve what on
its face seems like a simple problem.
I have a list of intergers, and I want to assign the sum of the intergers in
the list to a variable. There are only intergers in the list.
The best I have been able to do so far is to write a function that adds
list and list, then list and list , etc. Of course, this isn't
what I want.
I'd like to be able to sum a list of any size without having to type
I am totally stumped.
"Whether you're an honest man, or whether you're a thief, depends on whose
solicitor has given me my brief. " - Benjamin Franklin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor