The count=0
Right=0
While count<1:
Number1=random. Randint (10 13)
Number2.=the random randint (10 13)
Print (' topic is times d d % % % (number1, number2))
Question=input (' your answer is')
Result=number1 * number2
If question==result:
Print (' congratulations on your right)
The count=count + 1
Right=right + 1
The else:
Print (' you answer wrong, the correct answer is % d '% (result))
The count=count + 1
This is me to write a randomly generated double-digit multiplication code
But always remind the seventh line of the input is invalid parameter
Before adding # 7 can run
But the number1 with number2 assignment are integer why is invalid parameter
Pray god taught how to modify to normal operation
CodePudding user response:
Print (' topic is x % d % d % (number1, number2))Is not d % % d
CodePudding user response:
Upstairs said