Kevin Tiller

Generation

code to explanationThu, 20 Apr 2023

while n < len(questions): print(questions[n]) ans = input('Enter your answer: ') if ans == answers[n]: print("Correct!\n") score +=

This while loop goes through the questions and answers. If the answer is correct, it adds one to the score.

Want to kickstart your project?Use the new AI Studio to create your code