1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12931
2. 풀이
def solution(n):
return sum([int(x) for x in str(n)])
PREVIOUS[프로그래머스] 불량 사용자 풀이
https://programmers.co.kr/learn/courses/30/lessons/12931
def solution(n):
return sum([int(x) for x in str(n)])