Question: File one: [ guess.py ] Create a program that asks for your input between 1 and 1 0 0 ( 1 0 0 is included

File one: [
guess.py]
Create a program that asks for your input between 1 and 100(100 is included). Starting from 1, the program will use a for loop to sequentially guess the number you entered ,3,4dots, until 100. The program will stop when it guesses the right number. You cannot use if statements for this assignment. You will learn if in the next module.
For example: you type in 13 in the first line "Enter a number between 1 and 100 and I'll guess it:" and the output will be:
Enter a number between 1 and 100 and I'll guess it: 13
12
3
4
6
7
8
10
11
13
13, I got it!!
 File one: [ guess.py] Create a program that asks for your

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!