Question: Create a script that simulates a number guessing game. This game will work by having the user guess a randomly generated number. Ask the user
Create a script that simulates a number guessing game. This game will work by
having the user guess a randomly generated number. Ask the user to provide a lower and an upper
bound from which to select the random number. Then ask them to guess numbers until they find
the correct number.
a Tell the user if their guess is too high or too low.
b Keep count of how many guesses they took.
c Print a final statement telling them how many tries it took
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
