python check list for repeats code example
Example 1: count number of repeats in list python
mylist.count(element)
Example 2: python check for duplicate
def checkDuplicate(user):
if len(set(user)) < len(user):
return True
return False