"""
출처: 프로그래머스 코딩 테스트 연습,
https://school.programmers.co.kr/learn/courses/30/lessons/120891
"""
#풀이 과정
def solution(order):
answer = 0
a=list(str(order))
count=0
for x in a:
if not int(x)==0 and int(x)%3==0:
count+=1
answer=count
return answer
Lv0 프로그래머스(Programmers)[Python][파이썬] 369게임
"""
출처: 프로그래머스 코딩 테스트 연습,
https://school.programmers.co.kr/learn/courses/30/lessons/120891
"""
#풀이 과정
def solution(order):
answer = 0
a=list(str(order))
count=0
for x in a:
if not int(x)==0 and int(x)%3==0:
count+=1
answer=count
return answer