DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
list to set keep order python
# For Python 3.7+ items = [1, 2, 0, 1, 3, 2] list(dict.fromkeys(items)) >>> [1, 2, 0, 3]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#list
#set
#order
#python
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit