When I hit Run, the "Sorry, I didn’t catch that. Enter again: " is printed multiple times before I even get a chance to answer the question. Then, the code fails. It doesn’t matter if I enter any answer.
I searched the forum and I’m pretty sure the code is correct. I tried different browsers (Chrome, Firefox, Edge) but I get the same issue in all of them.
I expect that after I hit Run, the “Enjoying the course? (y/)” question is displayed. After I provide an aswer, the code should be validated and should get to the next step.
The code I used is provided below.
choice = raw_input('Enjoying the course? (y/n)') while choice != 'y' and choice != 'n': # Fill in the condition (before the colon) choice = raw_input("Sorry, I didn't catch that. Enter again: ")