1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12918
2. 풀이
def solution(s):
if (len(s) == 4 or len(s) == 6) and s.isdigit():
return True
return False
PREVIOUS[프로그래머스] 최고의 집합 _ 문제 풀이
이 블로그는 무료로 제공되고 있으며,
광고 수익은 제가 치킨을 먹는 데 큰 도움이 됩니다! 🍗
광고 차단을 해제해주시면 더 맛있는 치킨을... 아니,
더 좋은 콘텐츠를 제공할 수 있습니다! 😊
💡 Tip: 치킨 한 마리가 제 한 달 광고 수익입니다 😂
https://programmers.co.kr/learn/courses/30/lessons/12918
def solution(s):
if (len(s) == 4 or len(s) == 6) and s.isdigit():
return True
return False