import math
import random
seed = int(input("Enter game number: "))
random.seed(seed)
rangeBottom = 1
rangeTop = 10
score = 0
for i in range(4):
success = False
operation = random.randint(0, 3)
operand1 = random.randint(rangeBottom, rangeTop)
operand2 = random.randint(rangeBottom, rangeTop)
if operation == 0:
answer = int(input(str(operand1) + " + " + str(operand2) + " = "))
if answer == operand1 + operand2:
success = True
elif operation == 1:
answer = int(input(str(operand1) + " + " + str(operand2) + " = "))
if answer == operand1 - operand2:
success = True
elif operation == 2:
answer = int(input(str(operand1) + " * " + str(operand2) + " = "))
if answer == operand1 * operand2:
success = True
elif operation == 3:
answer = int(input("Square root of " + str(operand1) + " = "))
correct_answer = math.floor(math.sqrt(operand1))
if answer == correct_answer:
success = True
if success:
rangeBottom *= 2
rangeTop *= 2
score += 10
print("CORRECT")
else:
rangeBottom = max(rangeBottom // 2, 1)
rangeTop = max(rangeTop // 2, 10)
print("WRONG")
print("Game Score: " + str(score))
Can you tell me what's wrong with the code?
1 answer
```python
elif operation == 1:
answer = int(input(str(operand1) + " - " + str(operand2) + " = "))
if answer == operand1 - operand2:
success = True
```
With this correction, the subtraction operation will work correctly in the code.