@@ -0,0 +1,349 @@
+#!/usr/bin/python3%0A%0Adef sum_of_digits(number, base=10):%0A    '''Calculates the sum of the base base (default 10) digits in number.%0A%0A    %3E%3E%3E sum_of_digits(123)%0A    6%0A    %3E%3E%3E sum_of_digits(123, 16)%0A    18%0A    '''%0A    running_sum = 0%0A    while number %3E 0:%0A        number, digit = divmod(number, base)%0A        running_sum += digit%0A    return running_sum%0A

Add sum_of_digits.py to /math/sum-of-digits/python.