프로그래머스 Lv.1| Python - 자릿수 더하기

pg

풀이(

def solution(n):

    answer = list(map(int, str(n)))

    return sum(answer)

comments powered by Disqus