Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Password 2 Solutions solution in Clear category for Acceptable Password I by Striga
def is_acceptable_password(password: str) -> bool:
return len(password) > 6
#Solution 2:
is_acceptable_password = lambda password : len(password) > 6
if __name__ == '__main__':
assert is_acceptable_password('short') == False
assert is_acceptable_password('muchlonger') == True
assert is_acceptable_password('ashort') == False
Oct. 31, 2020