Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove all occurences

>>> x = [1, 2, 3, 4, 2, 2, 3]
>>> while 2 in x: x.remove(2)
>>> x
[1, 3, 4, 3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #occurences
ADD COMMENT
Topic
Name
9+4 =