Question: I need to write a code that is small game in Python: The user thinks of a natural number from 1 to 1000. The computer
I need to write a code that is small game in Python: The user thinks of a natural number from 1 to 1000. The computer tries to guess this number with no more than 15 questions of the form "Is your number less than x". Your program must always succeed in finding the number with
Now I have gotten this far but still the code (the first part not in red) doesn't work for numbers 1 to 1000 and I need to do it without guessCounter
Please help
Exam 1.py - C:/Users/HHGREGG/Documents/FAU/Fall 2017/lntro to Comp. Math/Exam 1.py (3.6.2)* File Edit Format Run Options Window Help #write a program game to gue33 a natural number between 1 and 1000 print ("Guess a natural number between 1 and 1000 and the computer wil1 Iind your number") lower = 1 = 1000 upper x=0 while
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
