Hi: I am testing the recursive function like this:
def countdown(n):
if n == 1:
print 1
elif n > 1:
print countdown(n - 1), '\n', n
else:
pass
The function is to count down from $n$ to $1$. but why I get 'None' in the output?
In [2]: countdown(4)
1
None
2
None
3
None
4
Thank you.