So, i have been learning from a video on youtube about basic multiple choice quiz with few possilble answers like a, b, c. but, if the user enters r or 44 the code just wont count it as a right answer. I want the code to print the user the question again. Ive tried to write something but now it is moving on to the next question only if the user enters the right question.
def test_run2(questions):
score = 0
for question in questions:
while True:
user_answer = input(question.prompt)
user_answer.lower()
if user_answer == "a" or "b" or "c":
if user_answer == question.answer:
score = score + 1
break