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
)
Source by www.datacamp.com #
PREVIOUS
NEXT
Tagged:
#python
#remove
#duplicates
#list
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit