Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove occurrences of number in list

def pop_x(arr, x):
    return list(filter(lambda i: i != x, arr))
# Removes all int values(x) from list(arr), in python 3.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #occurrences #number #list
ADD COMMENT
Topic
Name
4+4 =