Skip to content

Commit e53e487

Browse files
definehumandefinehuman
authored andcommitted
changed min/max value
1 parent 7e202c8 commit e53e487

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Generators/QuestionGenerator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def generate_random_number(minimum, maximum):
2424
return random.randint(minimum, maximum)
2525

2626
#to generate random values for a b c d
27-
minvalue = 1
28-
maxvalue = 100
27+
minvalue = 293
28+
maxvalue = 1000
2929
a = generate_random_number(minvalue, maxvalue)
3030
b = generate_random_number(minvalue, maxvalue)
3131
c = generate_random_number(minvalue, maxvalue)
@@ -41,7 +41,8 @@ def perform_random_operations(a, b, c, d):
4141
d_operation = random.choice(operations)
4242

4343
# Display the operations as a mathematical expression
44-
expression = f"{a} {a_operation} {b} {b_operation} {c} {c_operation} {d}"
44+
#expression = f"{a} {a_operation} {b} {b_operation} {c} {c_operation} {d}"
45+
expression = f"{a} {a_operation} {b} "
4546
print(f"Performing operations: {expression}")
4647

4748
result = eval(expression) # Use eval() to compute the result from the expression
@@ -50,7 +51,7 @@ def perform_random_operations(a, b, c, d):
5051

5152

5253
result = perform_random_operations(a, b, c, d)
53-
print(result)
54+
#print(result)
5455

5556
#to ask user the question
5657
while True:

0 commit comments

Comments
 (0)