Question
Guess My Number: Write a robust PYTHON program that randomly selects a number from 1 through 100 and asks the user to guess the number.
Guess My Number: Write a robust PYTHON program that randomly selects a number from 1 through 100 and asks the user to guess the number. At each guess the user should be told if the guess is proper, and if so, whether it is too high or too low. The user should be told of the number of guesses when finally guessing the correct number. See below. Please write in PYTHON.
I've thought of a number from 1 through 100. Guess the number: 50 Too low Try again: 123 Number must be from 1 through 100. Try again: sixty You did not enter a number. Try again: 60 Too high Try again: 56 Correct. You took 5 guesses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started