I am not good at coding and I am trying to change that but I am having troubles with this assignment. I have to create a math quiz where I ask the user to answer a simple addition question that uses two random integers. If they get the question right I am supposed to say congrats and ask them if they would like to answer another. If they get it wrong then the program needs to print the correct answer and again ask them if they would like to answer another until the user says no. Any suggestions would help immensely, thanks.
from sys import exit
q=input('Would you like to answer another question?')
if q == ("yes"):
math=raw_input("What is" (a + b)
if math == (answer):
print("Sorry the correct answer is" (answer))