Answers for "how to call sum function in python"

16

python sum of list

>>> list = [1, 2, 3]
>>> sum(list)
6
Posted by: Guest on January-27-2020
0

python sum

x = [1,2,3,4,5]
s = sum(x)
print(s) # 15
Posted by: Guest on May-08-2021

Code answers related to "how to call sum function in python"

Python Answers by Framework

Browse Popular Code Answers by Language