remainder = 0

def digit_sum(n):

for number in len(n):

if len(n) != 0:

number%10 = remainder

number //10 = remain

break

remainder = remainder + remainder

return remain

it comes the following error : Did you create a function called digit_sum? Your code threw a "global name 'digit_sum' is not defined" error.