Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
loop checking characters solution in Clear category for Acceptable Password II by kkkkk
def is_acceptable_password(password: str) -> bool:
"""Return True if password meets criteria, else return False.
Criteria:
- length is greater than 6
- contains at least one digit
"""
if len(password) <= 6:
return False
for character in password:
if character.isdigit():
return True
return False
March 18, 2020
Comments: