Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum() python

numbers = [2.5, 3, 4, -5]

# start parameter is not provided
numbers_sum = sum(numbers)
print(numbers_sum)
# output = 4.5

# start = 10
numbers_sum = sum(numbers, 10)
print(numbers_sum)
# output = 14.5
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
2+6 =