[프로그래머스] 문자열 다루기 기본

김예원·2022년 11월 23일

coding_test

목록 보기
26/30

문제

  • Lv.1

코드

def solution(s):
    answer = True
    if len(s)==4 or len(s)==6:
        pass
    else:
        answer=False
    for c in s:
        if c.isalpha():
            answer=False
            break
    return answer

0개의 댓글