Question: Using Python In Problem 6.35, you were asked to develop an application that asks users to solve addition problems. Users were required to enter their
Using Python
In Problem 6.35, you were asked to develop an application that asks users to solve addition problems. Users were required to enter their answers using digits 0 through 9. Reimplement the function game() so that it handles nondigit user input by printing a friendly message like Please write your answer using digits 0 though 9. Try again! and then giving the user another opportunity to enter an answer.
>>> game(3) 8 + 2 =
Enter answer: ten
Please write your answer using digits 0 though 9.
Try again!
Enter answer: 10
Correct.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
