This Python CLI Calculator supports basic math operations using a flexible, function-based approach with a clean command-line interface. It ensures safe inputs and includes error handling for division by zero and invalid inputs.
- Supports Addition, Subtraction, Multiplication, and Division
- Smart error handling (invalid numbers/operators, division by zero)
- Repeats until the user chooses to exit
- Uses a dictionary to map operators to functions (cleaner logic)
- Clone this repository or download
calculator.py - Run in terminal:
bash python calculator.py
Ghana Shyam Gudela