Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

8. Providing support during instruction.

Answered: 1 week ago