본문 바로가기
프로그래밍 문제/[Python] CheckIO

[CheckIO/Electronic Station] Acceptable Password IV

by UltraLowTemp-Physics 2024. 4. 7.
728x90

1. Problem: https://py.checkio.org/en/mission/acceptable-password-iv/
2. My solution 

def is_acceptable_password(password: str) -> bool:
    # your code here
    if len(password) < 6: return False
    elif  len(password) > 9: return True
    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

댓글