Thanks for the help everyone, for answering a simple question and pointing me toward more resources.<br><br><div><span class="gmail_quote">On 9/24/05, <b class="gmail_sendername">bob</b> <<a href="mailto:bgailer@alum.rpi.edu">
bgailer@alum.rpi.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">At 08:11 AM 9/24/2005, Luke Jordan wrote:<br>>Hi All,
<br>><br>>I have spent an embarrassingly large amount of time trying to solve what<br>>on its face seems like a simple problem.<br>><br>>I have a list of intergers, and I want to assign the sum of the intergers
<br>>in the list to a variable. There are only intergers in the list.<br><br>In addition to the other solutions there is the (more generic?) use of the<br>operator module and reduce function:<br><br>import operator<br>
reduce(operator.add, (1,2,3))<br><br>Explore operator to see what other functions you can use.<br><br>Also there are the array handling modules such as numarray.<br><br>You can also define your own classes based on list and write methods to do
<br>these operations.<br><br></blockquote></div><br><br clear="all"><br>-- <br>"Whether
you're an honest man, or whether you're a thief, depends on whose
solicitor has given me my brief. " - Benjamin Franklin