Hi!
I'm having a hard time trying to deal with this exercise. I have to create a program that should ask you 10 times about a product of the equation form multiplication table. Also in the end, it should print how many correct and wrong answers there were, as also the percentage of correct ones. And actually I've no idea how to program this code
to show the numbers of correct given products and wrong ones. I would much appreciate any help! And this's what I've managed to do for now:
I'm having a hard time trying to deal with this exercise. I have to create a program that should ask you 10 times about a product of the equation form multiplication table. Also in the end, it should print how many correct and wrong answers there were, as also the percentage of correct ones. And actually I've no idea how to program this code
to show the numbers of correct given products and wrong ones. I would much appreciate any help! And this's what I've managed to do for now:
from random import* odp=True s=0 while odp==True or odp==False: a=randint(1,10) b=randint(1,10) c=a*b print("what's the answer of",a,"*",b,end="") d=int(input()) if c==d: odp=True s=s+1 elif c!=d: odp=False s=s+1 if s>10: break print("number of correct answers-",s) print("number of wrong answers-",10-s) print("precentage of correct ones-",s*10)