def countup(k, n):
'counts up from k to n'
if k == n:
print(k)
elif n <= 0:
print("Let's go!")
else:
print(k)
countup(k+1,n)
I want to add a print statement of “Let’s Go” before the recursion starts so it would look like this:
countup(3,6)
Let’s Go!
3
4
5
6
You can write a wrapper function like this