Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
told user how to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zevirino committed Apr 10, 2024
1 parent 429761a commit 4fd440c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mathjail/pycalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
while equation!="e":
answer = eval(equation, {"__builtins__":{}},{})
print(f"Here is your answer: {answer}")
equation = input("Enter your next equation below:\n")
equation = input("Enter your next equation below (type 'e' to exit):\n")
print("Goodbye!")

0 comments on commit 4fd440c

Please sign in to comment.