Moksh2210-web/Calculator ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python calculator that runs from one file and lets me do basic math like add, subtract, multiply, and divide.
I want it to feel easy to use, like it asks for the numbers and the operation, then shows the result clearly. Please make the answers accurate up to 3 decimal places, and handle bad input nicely so it does not crash if I type something wrong or try to divide by zero.
Keep it simple and clean, since this is just a small calculator program. If you can, make it loop so I can do more than one calculation without restarting every time, and let me quit when I want. Also add a few comments so the code is easy to understand. If anything is unclear, use your best judgment and keep it straightforward.
Are you gonna build this?
make sure you review the code using coderabbit