Answers for "how to search in an list if there are duplicates"

3

how to check if there are duplicates in a list python

>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True
Posted by: Guest on December-12-2019
1

python check for duplicate

def checkDuplicate(user):
    if len(set(user)) < len(user):
        return True
    return False
Posted by: Guest on November-20-2020

Code answers related to "how to search in an list if there are duplicates"

Python Answers by Framework

Browse Popular Code Answers by Language