Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove list from list python

>>> a = range(1, 10)
>>> [x for x in a if x not in [2, 3, 7]]
[1, 4, 5, 6, 8, 9]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #list #list #python
ADD COMMENT
Topic
Name
3+3 =