Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove multipl eelements from list

unwanted = {'item', 5}
item_list = [e for e in item_list if e not in unwanted]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #multipl #eelements #list
ADD COMMENT
Topic
Name
5+7 =