python contains duplicate checker 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