Your code is incorrect. Run following test case in your VS Code and tell us what happens:
print(f"Digital root of 58 is {digital_root(58)}")
Your code performs recursion incorrectly, it is not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
Your code is incorrect. Run following test case in your VS Code and tell us what happens:
Your code performs recursion incorrectly, it is not a kata issue.
This comment is hidden because it contains spoiler information about the solution