Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove a list of numbers from a list in python

>>>lst= set([1,2,6,8]) - set([2,3,5,8])
set([1, 6])

print(list(lst))

#output = [1,6]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #list #numbers #list #python
ADD COMMENT
Topic
Name
2+2 =