Oops, try again. Your function fails on digit_sum(434). It returns 1302 when it should return 11.
i was expecting for n to become variable m changing the value of n to a string so it could be iterable so that in the for loop j makes m an integer and then i append to the empty list l
and then return the sum of list L
def digit_sum(n): l= m=str(n) for i in m: j=int(m) l.append(j) return sum(list(l))