python print sum values code example
Example 1: python sum of list
>>> list = [1, 2, 3]
>>> sum(list)
6
Example 2: python sum
a = 3
b = 5
c = sum (a + b)
print(c)
>>> list = [1, 2, 3]
>>> sum(list)
6
a = 3
b = 5
c = sum (a + b)
print(c)