Question: On Python language Question 3: Write a guessing script like in the lab worksheet where you continually prompt a user to guess a number from

On Python languageOn Python language Question 3: Write a guessing script like in the

Question 3: Write a guessing script like in the lab worksheet where you continually prompt a user to guess a number from 1 to 100 until they guess the number. After the second guess, and all subsequent guesses, the program should tell the user if they are getting hotter (meaning their current guess is closer than their previous guess) or getting colder (meaning their current guess is farther away than their previous guess). Here's an example, assuming the number to guess is 20: Please guess my number between 1 and 100 > Guess 1: 50 No sorry, that is not my number > Guess 2: 75 You are getting colder. No sorry, that is not my number. > Guess 3: 25 You are getting warmer. No sorry, that is not my number. > Guess 4: 30 No sorry, that is not my number. You are getting colder. > Guess 5: 20 You guessed my number! There is one caveat about the hotter" and "colder" hints you give the user. If the user's next guess is the same distance away from the right number as their previous guess, then technically they are not hotter or colder. In that case, we will make the decision to tell the user that they are getting hotter

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!