Python - Loops question

You might have an indentation error, but it’s difficult to tell b/c your code isn’t formatted. If you could please format your code by using the “</>” button above, that would be helpful.
Please see here on that.

Going forward, this is a good guide to check out before posting. It’s under the “New User Guide” on the home page:

That said, remember that spaces also have an index value. And, .find() finds the first index value of the occurrence.

This might be of some help:

1 Like