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.
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.