You are viewing a single comment's thread. Return to all comments →
python3
def minimumNumber(n, password): conditions = 4 exps = ["0-9", "a-z", "A-Z", "!@#$%^&*()\-+ "] for exp in exps: conditions -= 1 if re.match(f"(?=.*[{exp}]+)", password) else 0 return conditions if n>=6 else max(conditions, 6-n)
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
python3