Digit_sum()


#1

def digit_sum(n):
sum = 0
for i in str(n):
val = int(i)
sum += val
return sum