What does the last line, return 1 + .... do ? How can you return 1 plus a function call?
Below is the assignments text:
These functions recursively count the number of instances of the key in the target string
def countSubStringMatchRecursive(target, key):
currentPosition = find(target, key)
if find(target, key) == -1:
return 0
else:
return 1 + countSubStringMatchRecursive(target[currentPosition+1:], key)