[Tutor] sum of a list
dyoo at hkn.eecs.berkeley.edu
Wed Aug 11 20:55:17 CEST 2004
On Wed, 11 Aug 2004, Alan Gauld wrote:
> > try "sum(l_input)".
> Wow! When did that one appear? I've never noticed a sum() function
The Python implementors snuck...er, added sum() into Python 2.3:
Here's a link to the python-dev summary about sum():
Hope this helps!
More information about the Tutor