Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set change order python

>>> a = [1, 2, 20, 6, 210]
>>> b = set([6, 20, 1])
>>> [x for x in a if x not in b]
[2, 210]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #change #order #python
ADD COMMENT
Topic
Name
1+1 =