This is the error I get:
Oops, try again. Your function fails on digit_sum(434). It returns None when it should return 11.
I'd be grateful to get an explanation of what I'm doing wrong. Thanks!
def digit_sum(num): digits = num = str(num) for dig in num: answer = digits.append(int(dig)) return answer print answer