Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to add all the numbers of a list using python?

import functools
numbers = [175, 50, 25]
total = functools.reduce(lambda total, rightValue: total + rightValue, numbers)
print(total)
 
PREVIOUS NEXT
Tagged: #How #add #numbers #list
ADD COMMENT
Topic
Name
2+2 =