Calculating the Sum of Digits of a Number in Python

Prompt

Result