Python Check para duplicar
def checkDuplicate(user):
if len(set(user)) < len(user):
return True
return False
lil. Avni
def checkDuplicate(user):
if len(set(user)) < len(user):
return True
return False
>>> your_list = ['one', 'two', 'one']
>>> len(your_list) != len(set(your_list))
True