Question: Create a new version of this program with the following rules: -The program shall end when the user enters -1 as an answer, or when

Create a new version of this program with the following rules:

-The program shall end when the user enters -1 as an answer, or when the user misses 3 questions in a row. -The final score consists of the number of correct questions (as it is currently in the listing), plus the longest streak of correct answers multiplied by 10. For example, if at the end of the game the user answered correctly 8 questions, and the longest streak of correct answers was 4 questions in a row, the final score is 8 + (4 x 10) = 48

Create a new version of this program with the following rules: -The

import random import time correctCount = 0 # Count the number of correct answers count = 0 NUMBER_OF_QUESTIONS = 5 # Constant startTime = time.time() # Get start time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 while count

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!