코딩테스트 파이썬/파이썬 프로그래머스 1단계
문자열 다루기 기본
세용용용용
2023. 5. 14. 08:49

나의 코드
def solution(s):
if (len(s)==4 or len(s)==6) and s.isdigit()==True:
return True
else:
return False
print(solution("1234"))