I am working on ps3 and they're asking for two functions to iteratively and recursively count the number of matches of the key in the target.
This seems too obvious for part a:
def countSubStringMatch(target,key):
print target.count(key)
is this correct?
and then secondly, I don't have any idea how to do it recursively. I tried to write a recursive function that would tell me exactly where the key is hiding in the target but it's not working:

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.