You are here : python_3Built-in Functionssum

sum() - Built-in Functions

Sums start and the items of an iterable from left to right and returns the
total.  start defaults to 0. The iterable‘s items are normally numbers,
and the start value is not allowed to be a string.


Syntax

sum(iterable[, start])


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference