DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python has duplicates
def has_duplicates(lst): return len(lst) != len(set(lst)) x = [1,2,3,4,5,5] has_duplicates(x) # True
PREVIOUS
NEXT
Tagged:
#python
#duplicates
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit