DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit