There is my code for reference:
name=str(input("Welcome to the Math Game show! I'm your one and the only host Miles! What is your name? "))
print('Nice to meet you,',name+'!')
a=eval(input("How many questions do you want? "))
print("Then please get yourself ready. In 3.....2.....1.....GOOOO!")
list=['+','-','*']
point=0
question=0
for x in range (a):
import random
v1=str(random.randint(1,100))
v2=str(random.randint(1,100))
v3s=random.randint(0,2)
v3=list[v3s]
answer=eval(v1+v3+v2)
question+=1
print('Question',str(question)+': What is the answer of',v1+v3+v2,'?')
A=eval(input())
if A==answer:
if v3=='*':
point+=20
print('Correct! Since this is a harder question, you just gained 20 points! You now have',point,'points.')
else:
point+=10
print('Correct! You just gained 10 points! You now have',point,'points.')
else:
point-=5
print('Incorrect! The answer is',answer,'! You lose 5 points! You now have',point,'points.')
print('Now for the next question.')
print('Game over! You answered',question,'questions and your score is',str(point)+'. Well done!')
This can let player answer as much as they want.
In your code, there are some improvements.
1.Never change the variables in print(). If you wish to increase the value of 'point' by 10, you should use point+=10 or point=point+10. If you use print(point+10), the output will be 10 (if 'point' is 0) and variable 'point' does not increase. Note you should assign variables or change them in a new line.
2.Combine if question1==21: and elif question1==19: into if question1==21 or question1==19: . This can make the code more simple. (Though I'm quite confused why 9+10=21 is correct)
3.If you assign a value to a variable, you don't need to use point=int(0) , because 0 is already a number! If you wish to assign a string to a variable, use ' ' , for example, name='Miles' .