LogicDecode / hactoberfest2023

Pull request best of your code snippets to help open source community
MIT License
10 stars 142 forks source link

Update simpleCalculator.py #71

Closed Nikhil18Patil closed 11 months ago

Nikhil18Patil commented 11 months ago

I added an option for the user to quit the calculator by entering '5'. I added input validation for division by zero to prevent runtime errors. I formatted the output messages for better readability. I used f-strings to format the output with variables. I improved the user prompt for the next calculation.