Haribo
ML, AI, MATH, Algorithm
Home
Archives
Categories
Tags
About
자릿수 더하기
2021-01-17
Haribo
프로그래머스
Lv.1
코드
자릿수 더하기
코드
def
solution
(
n
):
return
sum
(
int
(
x
)
for
x
in
str
(
n
))
이전 포스트
이상한 문자 만들기
다음 포스트
자연수 뒤집어 배열로 만들기
Comments
Please enable JavaScript to view the
comments powered by Disqus.
Content
Comments