Recursive Digit Sum

  • + 0 comments

    Instead of

    if len(n)==1:

    ; it should be

    if len(n)==1 and k==1: