Commit 02baeedf authored by Gilles Coremans's avatar Gilles Coremans
Browse files

Fix input parsing bug

parent 360845e8
......@@ -9,9 +9,9 @@ except ValueError:
exit(1)
try:
operand2 = int(operand1)
operand2 = int(operand2)
except ValueError:
print(operand1 + " is not a number!")
print(operand2 + " is not a number!")
exit(1)
print("Your result is:")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment