Question: Write a program in python that ask a user for the sum of two random numbers. If the user's answer is not equal to the
Write a program in python that ask a user for the sum of two random numbers. If the user's answer is not equal to the sum of the two numbers, the program will ask again the user for the sum of two new random numbers. NOTE! Copy paste and screenshot the code and sample output thank you.


import random #declare two variables #Generate two random numbers #Prompt the user to answer, "What is (random number 1) + (random number 2) use the str() function #formula to add the two random numbers # (while loop code) Repeatedly ask the question until the answer is correct #Generate two random numbers #Prompt the user to answer, "What is (random number 1) + (random number 2) use the str() function #formula to add the two random numbers #display ("You Got it!!") What is 6 + 6 ? 1 What is 8 + 7 ? 5 What is 8 + 4 ? 7 + What is 1 + 3 ? 5 What is 2 + 0 ? 6 What is 7 + 0 ? 8 What is 5 + 0 ? 7 What is 9 + 0 ? 3 What is 8 + 6 ? 14 You Got it!! >>>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
