# enter into an infinite loop while True: # ask the user to answer a math question answer = int(input("What is 2+2? ")) # did they get it right? if answer == 4: # congratulate the user print ("Correct!") # end the loop break # did they get it wrong? else: print ("Incorrect, try again")