Question: GuessNumber.py GuessNumber.py ECompanion Task 1 : Write loops that validate input at all places in the code where the user is asked to provide input.

GuessNumber.py
GuessNumber.py
ECompanion
Task 1: Write loops that validate input at all places in the code where the user is
asked to provide input.
Task 2: The program can be executed several times to ensuring the random
number changes.
An example of the program is shown below:
Do you want to guess a number? Enter Y or N : Y
I'm thinking of a number...
Try to guess by entering a number between 1 and 10: 2
That's not correct. Do you want to guess again? Enter Y or N : Y
I'm thinking of a number...
Try to guess by entering a number between 1 and 10: 5
That's not correct. Do you want to guess again? Enter Y or N: N
Your current grade is: 40.00%
RUN CODE
CALCULATE GRADE
 GuessNumber.py GuessNumber.py ECompanion Task 1: Write loops that validate input at

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!