PS 3, problem 2 question: What should be returned if key string is empty?

PS 3, problem 2 question: What should be returned if key string is empty?

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!

The issue I'm mainly having is with problem 3, as it depends on the results of my work for problem 2. Looking at problem 3, it seems like problem 2 would need to return a tuple of all the indexes in the target string, but that seems really wrong, intuitively.

Ah well, I just modified my function from problem 2 and included it in problem 3's .py file.

PS 3 problem 4. gave me some problems...I ended up scrapping my entire preliminary work and redid the whole prob. set. I'm still not happy with my code though and will rework it after PS4. Keep it up Keen!

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.