sum

sum(sequence[, start=0])

Sums start and the items of a sequence, from left to right, and returns the total. start defaults to 0. The items are normally numbers, and are not allowed to be strings. The fast, correct way to concatenate sequence of strings is by calling ''.join(sequence). Note that sum(range(n), m) is equivalent to reduce(operator.add, range(n), m). New in version 2.3.

 

A Django site. this page was rendered by a django application in 0.02s 2008-12-04 02:12:45.101506. hosted by webfaction.