What us the use of sum in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What us the use of sum in python

21st May 2020, 5:13 PM
Prasant shukla
Prasant shukla - avatar
3 Answers
+ 7
sum() in python can be used to evaluate the values in iteratable with '+' operator Syntax: sum(ITERATABLE) https://code.sololearn.com/cV9r7GJ3y4iw/?ref=app
21st May 2020, 6:57 PM
Subash
Subash - avatar
+ 5
What is the use of sum in maths?
21st May 2020, 5:15 PM
HonFu
HonFu - avatar
+ 1
The sum function take a list and sum all values of this
21st May 2020, 5:19 PM
4lx
4lx - avatar