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
bad_list = ["hi", 1, 2, 2, 3, 5, "hi", "hi"] good_list = list(set(bad_list))
PREVIOUS
NEXT
Tagged:
#python
#remove
#duplicates
#list
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit