DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python remove duplicates from list
mylist = ["a", "b", "b", "c", "a"] mylist = sorted(set(mylist)) print(mylist)
PREVIOUS
NEXT
Tagged:
#python
#remove
#duplicates
#list
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit