- 1
hi guys what is sum
4 Respuestas
+ 2
print(sum([1,2,3])) #returns 6
+ 1
func to sum all list items and gives the result
:)
+ 1
Sum is short for summation and is a mathematical operation. It takes a series of items (which may be in a list or not) and sum them up to a number of them. Similar to it there's also the product of sequences
Wikipedia article:
https://en.m.wikipedia.org/wiki/Summation
- 1
exmple plz :)