Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program called inputeval.py that: a. In a comment on the first line gives your full name (first and last). b. Assigns the value

Write a program called inputeval.py that:
a. In a comment on the first line gives your full name (first
and last).
b. Assigns the value of your favorite integer to the variable
numfave.
c. Creates a counting variable called ucount that counts the
number of guesses made by the user.

 

 

d. Asks the user to guess integers until the user guesses the
value of numfave by stating "Guess my integer". Assign
the user's input to the variable uguess.
e. Each time the user guesses a value, convert the inputted
value into an integer (assume the user will only input
integers).
i. Compare the user's guess to the value of numfave.
ii. If the guess is incorrect, tells the user whether the
guessed integer is too high or too low and then asks
the user to input another guess.
iii. If the guess is correct, congratulates the user and
tells the user how many attempts it took for them to
guess correctly.

 

Send help plz

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

Intermediate Accounting

Authors: Donald Kieso, Jerry Weygandt, Terry Warfield, Nicola Young,

10th Canadian Edition, Volume 1

978-1118735329, 9781118726327, 1118735323, 1118726324, 978-0176509736

More Books

Students also viewed these Programming questions

Question

What is the EPA's role in environmental regulation?

Answered: 1 week ago

Question

Where do I give in to my bad habit?

Answered: 1 week ago