#Times table test import random score = 0 myTable = int(input("which table would you like to be tested on? ")) for i in range(5): testNum=random.randint(2,13) rightAnswer = testNum * myTable print(myTable," x",testNum," = ") myAnswer =int(input()) if myAnswer==rightAnswer: print ("Correct!") score+=1 else: print("Wrong... the correct answer is :",rightAnswer) print("Your score out of 5 is ", score)