Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Evoluotion, the final completion (part VI). solution in Clear category for Acceptable Password VI by Tinus_Trotyl
# Taken from mission Acceptable Password V
# Taken from mission Acceptable Password IV
# Taken from mission Acceptable Password III
# Taken from mission Acceptable Password II
# Taken from mission Acceptable Password I
def is_acceptable_passwordI(password: str) -> bool:
return len(password) > 6
def is_acceptable_passwordII(password):
return is_acceptable_passwordI(password) and any([c in '0123456789' for c in password])
def is_acceptable_passwordIII(password):
return is_acceptable_passwordII(password) and not all([c in '0123456789' for c in password])
def is_acceptable_passwordIV(password):
return is_acceptable_passwordIII(password) or len(password) > 9
def is_acceptable_passwordV(password):
return is_acceptable_passwordIV(password) and not 'password' in password.lower()
def is_acceptable_password(password):
return is_acceptable_passwordV(password) and len(set(list(password))) >= 3
Oct. 13, 2020
Comments: