[프로그래머스] 자릿수 더하기Lv.1
def solution(n): arr = list(map(int, list(str(n)))) return sum([i for i in arr])