💡 Python 3
문자열 다루기 기본 [Link]
def solution(s): return (len(s) == 4 or len(s) == 6) and s.isdigit()
간결한 코드
def alpha_string46(s): return s.isdigit() and len(s) in (4, 6)