Digit_sum HELP!


#1



https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/0/4?curriculum_id=4f89dab3d788890003000096#


Ok, so i am this point of code but i am stuck because i dont know how to add the int together.


Replace this line with your code. 
def digit_sum(n):
    x = []
    x.append(str(n))
    for a in x:
        a = int(a)


#2

simply declare a variable total, give it a value of zero

add (+) a to total


#3

Im not following...would you mind showing me an example?


#4

defining variable is covered in the first 5 lessons?

you don't understand anything i just said?


#5

haha, no. I understand now.


#6