DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit