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

Fix input parsing bug

parent 360845e8
...@@ -9,9 +9,9 @@ except ValueError: ...@@ -9,9 +9,9 @@ except ValueError:
exit(1) exit(1)
try: try:
operand2 = int(operand1) operand2 = int(operand2)
except ValueError: except ValueError:
print(operand1 + " is not a number!") print(operand2 + " is not a number!")
exit(1) exit(1)
print("Your result is:") print("Your result is:")
Supports Markdown
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