Question: use Python You will implement a variant of the range game we played in lecture. In this variant, you will ask the user to guess
use Python
You will implement a variant of the range game we played in lecture. In this variant, you will ask the user to guess the price of a $42,500 car. If they are not exactly correct, your program will tell them they are either too high or too low. If they guess the price of the $42,500 car exactly in 5 or fewer questions, they will win the car. Here are two transcripts showing how the program should work in both cases: Guess the price and win the prize! Enter your guess:35000 Too low! Enter your guess: 42500 You won! Guess the price and win the prize! Enter your guess:50000 Too high! Enter your guess:25000 Too low! Enter your guess:37500 Too low! Enter your guess: 43750 Too high! Enter your guess:40625 Too low! You lost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
