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
'프로그래밍 문제 > [Python] CheckIO' 카테고리의 다른 글
[CheckIO/Electronic Station] Acceptable Password V (0) | 2024.04.07 |
---|---|
[CheckIO/Electronic Station] acceptable-password-ii (0) | 2024.04.07 |
[CheckIO/Electronic Station] digits-multiplication (0) | 2024.04.07 |
[CheckIO/Scientific-Expedition] Secret Message (0) | 2024.04.07 |
[CheckIO/Scientific Expedition] striped words (0) | 2024.03.24 |
댓글