hi I wrote the code below, i was expecting the function to return 8 but somehow this function doesn't return any value at all, is there a way to modify this function so it can return some value? (please still use a recursive function). Also it would be much appreciated if you can let me know why this problem occurred.
Thanks!
def recursive(left):
if left<=7:
left+=1
recursive(left)
else:
return left
recursive(0)