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

[CheckIO/Electronic Station] acceptable-password-ii

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

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

def is_acceptable_password(password: str) -> bool:
    # your code here
    if len(password) < 6: return False
    else:
        if True in [ x.isnumeric() for x in list(password)]: return True
        else:  return False
728x90

댓글