Create 4 - Digital Root.py

This commit is contained in:
Lukas Baumann 2021-02-17 12:53:29 +01:00 committed by GitHub
parent 9b21cea8b6
commit d13bb10ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
16/4 - Digital Root.py Normal file
View File

@ -0,0 +1,5 @@
def digitalRoot(n):
if n<10:
return n
else:
return digitalRoot(digitalSum(n))