if a list has two identical items return only one 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