Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Evolution (part IV) solution in Clear category for Acceptable Password IV by Tinus_Trotyl
# 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: str) -> bool:
return is_acceptable_passwordI(password) and any([c in '0123456789' for c in password])
def is_acceptable_passwordIII(password: str) -> bool:
return is_acceptable_passwordII(password) and not all([c in '0123456789' for c in password])
def is_acceptable_password(password: str) -> bool:
return is_acceptable_passwordIII(password) or len(password) > 9
Oct. 13, 2020