import re
def is_acceptable_password(password: str) -> bool:
if (len(password) <= 6 or re.search('(?i)password', password)):
return False
elif (len(password) in range(6,10) and password.isdigit() and password.isalpha()):
return True
elif len(password) > 9:
return True
elif (len(password) > 10 and len(set(list(password))) >= 3):
return True
else:
return False
Created at: 2022/03/10 20:25; Updated at: 2022/03/11 01:26