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?
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
Get step-by-step solutions from verified subject matter experts
