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