[프로그래머스] 자릿수 더하기Lv.1

나의 풀이

def solution(n):
    arr = list(map(int, list(str(n))))
    return sum([i for i in arr])

0개의 댓글