Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check the duplicate item in list

thelist = [1, 2, 3, 4, 4, 5, 5, 6, 1]
 
print(len(thelist) != len(set(thelist)))
Source by www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #check #duplicate #item #list
ADD COMMENT
Topic
Name
1+4 =