Thread
:
Coding this function
View Single Post
Nov 23rd, 2006, 7:32 PM
#
8
Sane
Programming Guru
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power:
5
It might be "cheating", but there is the "sum" function.
(
Toggle Plain Text
)
>>> sum([4,5,6]) 15 >>> sum([7,8,9]) 24
>>> sum([4,5,6]) 15 >>> sum([7,8,9]) 24
Sane
View Public Profile
Find More Posts by Sane