Question: **PYTHON CODE** Write a program that gives simple math quizzes. The program should display two random numbers and ask that they either be added or

**PYTHON CODE**

**PYTHON CODE** Write a program that gives simple math quizzes. The program

Write a program that gives simple math quizzes. The program should display two random numbers and ask that they either be added or subtracted from each other. For example, the program may display: Please enter 243 : The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed. You may only use concepts from Chapters 2 through 5 of the book to complete this assignment. Notes and Hints: - The random numbers you display should be between 1 and 50 - You can use random number generation to determine whether you're asking for addition or subtraction as well. Think about it like flipping a coin to decide which to ask

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!