Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sum(map(int, str(num))) while 2+ digits solution in Clear category for Sum of Digits by Phil15
def sum_digits(num: int) -> int:
while num >= 10:
num = sum(map(int, str(num)))
return num
Sept. 12, 2022