Hey guys I'm having some trouble doing this exercise, can someone show me what i'm doing wrong?
This is the exact link to the exercise.
"Oops, try again. Your function fails on digit_sum(434). It returns 20 when it should return 11."
This is what i've been working on:
my_list =  def digit_sum(n): total = 0 n = str(n) for number in n: my_list.append(int(number)) total += sum(my_list) return total