We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f1917 commit d8be101Copy full SHA for d8be101
main.py
@@ -1,3 +1,6 @@
1
+#This version implements an Issue 24.8.22 improvements
2
+
3
4
import random
5
import operator
6
@@ -13,8 +16,9 @@ def chooseNum():
13
16
num_2 = random.randint(1, 10)
14
17
return num_1,num_2
15
18
19
20
def operate(operation):
-
21
+ #The operation operator.truediv must compute only integers
22
pureInt=True
23
while pureInt:
24
num_1,num_2=chooseNum()
@@ -35,6 +39,7 @@ def random_problem():
35
39
print(f'What is {num_1} {operation} {num_2}')
36
40
return answer
37
41
42
+# The answer and quess are both int() type
38
43
def ask_question():
44
answer = int(random_problem())
45
try:
0 commit comments