digs =  def digit_sum(x): num = str(x) for char in num: digs.append(int(char)) lol = 0 for z in digs: lol = lol + z return(lol)
I don’t know why this is giving me so much trouble, but I can’t figure this out. I keep getting the error
Your function fails on digit_sum(1000). It returns 12 when it should return 1.
and I can’t even begin to figure out what is doing that. Help me please?