Acceptable Password I

Sophia Kim·2021년 9월 30일
0

checkio

목록 보기
3/6

def is_acceptable_password(password: str) -> bool:
if len(password)>6:
return True
else:
return False

if name == 'main':
print("Example:")
print(is_acceptable_password('short'))

# These "asserts" are used for self-checking and not for an auto-testing
assert is_acceptable_password('short') == False
assert is_acceptable_password('muchlonger') == True
assert is_acceptable_password('ashort') == False
print("Coding complete? Click 'Check' to earn cool rewards!")
profile
Data analyst und NLP engineer

0개의 댓글

관련 채용 정보