728x90
1. Problem: https://py.checkio.org/en/mission/acceptable-password-iii/
2. My solution
def is_acceptable_password(password: str) -> bool:
# your code here
if len(password) < 6: return False
else:
list_boolen = [ x.isnumeric() for x in list(password)]
if True in list_boolen :
if False in list_boolen: return True
return False
728x90
댓글