AceLewis / my_first_calculator.py

my_first_calculator.py
4.07k stars 452 forks source link

Code size fixed and calculation efficiency improved. #132

Open indexdothtml opened 3 years ago

indexdothtml commented 3 years ago

Number of lines reduced, efficiency of program is improved and added Invalid Choice handling, if user enters incorrect symbol other than +, -, *, / then output print like Invalid Choice, enter correct choice.

AceLewis commented 3 years ago

To be clear, this repo is literally a joke. The code is supposed to be bad, this is not how you would create a calculator.

The README.md explains why I made the joke, and the generator (generator.py) that made my_first_calculator.py is in the repo.

I have suddenly got a lot of PRs probably because Hacktoberfest has started. I am going to copy and paste this comment on all PRs to save my time. If you are trying to do Hacktoberfest please look elsewhere, DigitalOcean have issued an update to reduce the spam: https://hacktoberfest.digitalocean.com/hacktoberfest-update

https://blog.domenic.me/hacktoberfest/