Question: PYTHON: The Higher/Lower Game is the traditional game where a person tries to guess a number. After each guess, they will be told to guess
PYTHON:
The Higher/Lower Game is the traditional game where a person tries to guess a number. After each guess, they will be told to guess higher if they guessed too low or told to guess lower if they guessed too high.
Write a program that: 1. Generates a random number between 1 and 1000 (refer to pages 197-198 in the textbook for random number generation) 2. Prompts the user to guess the number 3. Uses a loop to allow the user to continue guessing the number until it is guessed a. After each guess, the user will be notified of whether the next guess should be higher or lower b. Tracks the number of guesses that have been made 4. After the correct number is guessed, the program will display to the user the number of guesses that were made
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
