Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python delete none from list

>>> L = [0, 23, 234, 89, None, 0, 35, 9]
>>> [x for x in L if x is not None]
[0, 23, 234, 89, 0, 35, 9]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #delete #list
ADD COMMENT
Topic
Name
6+8 =