GoalScope — digital_root (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def digital_root(n):↵
"""Calculate the digital root of a number."""↵
while n >= 10:↵
n = sum(int(digit) for digit in str(n))↵
return n↵
</code>