Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of elements in a list.

data = ['5', '4', '9']

sum(int(i) for i in data)
18
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #elements
ADD COMMENT
Topic
Name
5+7 =