Bob is really stressing me out

I think I have tried every possible solution I could think of for the Bob exercise in Python track. I also tried my solution on my personal computer however when I input the solution into the editor. I get a different result. I’m open to suggestion on how to improve my solution or another perspective on solving the problem.

“ends with a space” is not a question. The response for the last one should be “Whatever.” In fact whitespace is entirely irrelevant.

I used the endswith method to check if a statement ended with a question mark or a whitespace because there was a test statement that had a trailing whitespce after the sentence ended with a question mark.

never mind, i figured it out. i stripped the sentence of any leading or trailing whitespaces and just used the conditions in the instructions.

1 Like