Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started