correct = False points = 0 while not correct: if input("1 + 1 = ") == 2: print("Correct") points += 1 correct = True else: print("Wrong answer, try again!")