You are viewing a single comment's thread. Return to all comments →
python
def superDigit(n, k): # Write your code here if len(n)<2: return n else: Sum=k*sum([int(char) for char in n]) return superDigit(str(Sum), 1)
Seems like cookies are disabled on this browser, please enable them to open this website
Recursive Digit Sum
You are viewing a single comment's thread. Return to all comments →
python