Algorithm/프로그래머스
[Lv.0/Python] 자릿수 더하기
chocoji
2023. 7. 28. 22:43
🔗 문제
https://school.programmers.co.kr/learn/courses/30/lessons/120906
💻 Code
def solution(n):
return sum([int(num) for num in str(n)])