i tried to implement function that finds the digital root of a number(it is the recursive sum of all the digits in a number.) but for some reason it returned none if the function make a recursive call to itself
import functools
def digital_root(n):
  r=functools.reduce(lambda x,y:int(x)+int(y),list(str(n)));
  if r//10<1:
   return r
  else:
   digital_root(r)
 
     
     
     
    