Search
 
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])
Source by www.educative.io #
 
PREVIOUS NEXT
Tagged: #find #duplicates #python #list
ADD COMMENT
Topic
Name
2+1 =