Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove all elemnts in list containing string

l = [elem for elem in elem_list if not 'mystringhere' in elem]
 
PREVIOUS NEXT
Tagged: #python #remove #elemnts #list #string
ADD COMMENT
Topic
Name
7+4 =