how to check if there are duplicate items in a list python code example
Example: python check for duplicate
def checkDuplicate(user):
if len(set(user)) < len(user):
return True
return False
def checkDuplicate(user):
if len(set(user)) < len(user):
return True
return False