Question: how to use python to solve the problem? Look at the code below. This code shows us how to use random number generator function. import

how to use python to solve the problem?how to use python to solve the problem? Look at the code

Look at the code below. This code shows us how to use random number generator function. import random x = random.randrange(1,4) #this picks a number between 1 and 4, but not including 4 #so it picks a number 1,2,3 Have the compute pick two random numbers between 10 and 100. Ask the user what the sum of the two numbers is as a question. o What is 14 + 56? Let the user type in what they think the answer is. In a while loop, keep asking the question over and over again until they get it correct. o Keep track of how many guesses it takes. Then tell the user how many guesses it took them

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!