import random #[0,1)
print("Multiplication Table Test:")
s=0
r=0
t=0
maximum=5
table=['Good!','Well Done!','Perfect!']
while(t<maximum):
a=int(random.random()*9+1)
b=int(random.random()*9+1)
r=a*b
print("Please input the result of:",a,"*",b,":")
ans=int(input("Please input the result:"))
if r == ans:
s +=1
print(random.choice(table))
else:
print("Oh No~")
t+=1
print("your score is:",s,"of",maximum)
import random #[0,1)
print("Multiplication Table Test:")
s=0
r=0
t=0
maximum=5
table=['Good!','Well Done!','Perfect!']
while(t<maximum):
a=int(random.random()*9+1)
b=int(random.random()*9+1)
r=a*b
print("Please input the result of:",a,"*",b,":")
ans=int(input("Please input the result:"))
if r == ans:
s +=1
print(random.choice(table))
else:
print("Oh No~")
t+=1
print("your score is:",s,"of",maximum)