My code returns this error "Oops, try again. Your function fails on digit_sum(434). It returns 8 when it should return 11."
Here's the code....I've seen other solutions, but wish to know what is wrong with my approach. Thanks for your help!
for i in range(n):
i = n % 10
a = n / 10
n = int (a)
i += i
Replace this line with your code.