+ 1
Strange output in recurtion.
Why does it print "None" instead of 6? https://code.sololearn.com/cUUHbt9FIES1/?ref=app
2 Answers
+ 5
because you print a print statement
Your last line calls to print, but so does inside the function you call
+ 4
at the end of function you return nothing
return digital_root(sum([int(i) for i in str(n)]))