if i just read my sum_digits function here, it makes sense in my head but it seems to be producing wrong results. Any tip?
sum_digits
def is_a_digit(s): \
You're resetting the value of b on each iteration, if a is a digit.
b
a
Perhaps you want:
b += int(a)
Instead of:
b = int(a) b += 1