'F' → Fullscreen
Create a new Python program named 1-23-trivia-game.
questions list and a parallel answers list — keep them the same length.questions = [ "What planet is known as the Red Planet?", "How many bits are in a byte?", "What language have we been learning?",]
answers = [ "mars", "8", "python",]answers, and track a score.questions = [ "What planet is known as the Red Planet?", "How many bits are in a byte?", "What language have we been learning?",]
answers = [ "mars", "8", "python",]
score = 0
for i in range(len(questions)): response = input(questions[i] + " ").lower()
if response == answers[i]: print("Correct!") score = score + 1 else: print(f"Incorrect. The correct answer was {answers[i]}.")questions = [ "What planet is known as the Red Planet?", "How many bits are in a byte?", "What language have we been learning?",]
answers = [ "mars", "8", "python",]
score = 0
for i in range(len(questions)): response = input(questions[i] + " ").lower()
if response == answers[i]: print("Correct!") score = score + 1 else: print(f"Incorrect. The correct answer was {answers[i]}.")
print(f"You scored {score} out of {len(questions)}.")
if score == len(questions): print("Perfect score!")else: print("Keep practicing!")Verify your program works correctly.
What planet is known as the Red Planet? mars [Enter]Correct!How many bits are in a byte? 8 [Enter]Correct!What language have we been learning? javascript [Enter]Incorrect. The correct answer was python.You scored 2 out of 3.Keep practicing!Answer the following questions before submitting your work.
questions and answers stay the same length for this program to work?for i in range(len(questions)): instead of for question in questions:?Submit the required files to the appropriate dropbox.