Language/Python

[Python / 프로그래머스 level 1] 문자열 다루기 기본

ej503 2021. 6. 18. 14:35

def solution(s):
    if len(s) == 4 and s.isdigit():
        return True
    else: 
        return False