DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
find duplicates in python list
names = ['name1', 'name2', 'name3', 'name2'] set([name for name in names if names.count(name) > 1])
PREVIOUS
NEXT
Tagged:
#find
#duplicates
#python
#list
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit