Its a random maths question that returns an error that I didn't expect. Please help! The error is: print('Your score was: '+int(score)) TypeError: Can't convert 'int' object to str implicitly
import random
count=0
while count<10:
numb1=random.randint(1,12)
numb2=random.randint(1,12)
ops=[' add ',' times ',' takeaway ']
ops2=random.choice(ops)
question=str(numb1)+''.join(ops2)+str(numb2)
print(question)
ans=int(input('Answer: '))
count=count+1
score=0
if ans== numb1+numb2 or numb1-numb2 or numb1*numb2:
score=score+1
print('Your score was: '+score)