Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list(set()) python remove order

>>> x = [1, 2, 20, 6, 210]
>>> sorted(set(x), key=x.index)
[1, 2, 20, 6, 210]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #order
ADD COMMENT
Topic
Name
2+1 =