[Solved]Write Complete Syntactically Correct Python Program Solve Following Problem Write Program Q37210598
Write a complete and syntactically correct Python program tosolve the following problem:
Write a program that gives simple math quizzes. The programshould display two random
numbers that are to be added, such as:
247
+ 129
The program should allow the student to enter the answer. If theanswer is correct, a message
of congratulations should be displayed. If the answer isincorrect, a message showing the
correct answer should be displayed.
1. The program will select 2 random integers and assign them tovariables
2. You will right 3 functions
a. displayProblem
b. getAnswer
c. showResult
3. You should generate the random number in the main functionand pass it to the
displayProblem function
4. In the getAnswer function, the user should enter theiranswer, then return the answer
back to the function call
5. Program should pass both the correct answer and the useranswer to the showResult
function. If the user answer is equal to the correct answerdisplay “Correct answer –
Good Work!” if the user answer is not equal to the correctanswer display “Incorrect…
The correct answer is: “, correctAnswer
Expert Answer
Answer to Write a complete and syntactically correct Python program to solve the following problem: Write a program that gives sim… . . .
OR

