You need to compare guess with answer.
print ("what is your username")
name = input().title()
print (name, "welcome")
import random
score=0
question=0
for i in range(10):
ops = ["+", "-", "*"]
num1 = random.randint (0,10)
num2 = random.randint (0,10)
oparator = random.choice(ops)
Q=(str(num1)+(oparator)+(str(num2)))
print (Q)
guess = input()
guess = int(guess)
if oparator =='+':
answer = int(str(num1+num2)) # Convert to int
elif oparator =='-':
answer = int(str(num1-num2))
else:
oparator =='*'
answer = int(str(num1*num2))
if guess == answer: # Compare user's answer with actual answer
print ("correct")
score = score + 1 # Update the score
else:
print ("incorrect")