```
import random
from random import randrange
#imports necessary modules
global score
score = 0

def question():
    qno = 0
    while(qno<10):
        num1 = randrange(1,12)
        num2 = randrange(1,10)
        operator = ['*','+','-']
        ems = random.choice(operator)
        ans = (int(eval(str(num1) + ems + str(num2))))
        print (num1, ems, num2)
        userans = int(input ("What is the answer?"))
        if userans == ans:
            print ("Correct!")
            global score
            score += 1
        elif userans != ans:
            print("Not Quite")

        else:
            raise ValueError()
        qno += 1

question()
print (score,"/10")

```