Why does my recursive function return
The OP has a recursive function, in which the recursive calls misses a
return. It thus evaluates to
None whenever it recurses.
def recurse(n): if n == 0: return "Done" recurse(n-1) # missing return print(recurse(5)) # prints None