- 1

hi guys what is sum

12th Feb 2018, 9:25 AM
אור רגב
אור רגב - avatar
4 ответов
+ 2
print(sum([1,2,3])) #returns 6
12th Feb 2018, 3:41 PM
Tato
Tato - avatar
+ 1
func to sum all list items and gives the result :)
12th Feb 2018, 9:32 AM
Youssef Gamal
Youssef Gamal - avatar
+ 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
12th Feb 2018, 10:00 AM
spcan
spcan - avatar
- 1
exmple plz :)
12th Feb 2018, 9:36 AM
אור רגב
אור רגב - avatar