Light Mode
Dark Mode
What is failing?
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: March 10, 2022, 8:25 p.m.
Updated: March 11, 2022, 1:26 a.m.
0
8
User avatar
BB_8