Digit_sum "short" but i got error


#1


Is there anything wrong ???


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


#2

Hi @objectrockstar44032,

This function header needs to end with a colon ...

def digit_sum(n)

#3

i knew. ok thanks


#4