Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of values with none

>>> sum(filter(None, [1,2,3,None]))
6
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #values
ADD COMMENT
Topic
Name
3+9 =