Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count none in list python

lst = ['hey','what',0,False,None,14]
print(sum(x is not None for x in lst))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #list #python
ADD COMMENT
Topic
Name
9+5 =