This is a command-line based calculator application built with Python. It supports:
- Addition
- Subtraction
- Multiplication
- Division
- Easy to use CLI interface
- Handles invalid inputs and division by zero
- Includes unit tests for key functionalities
- Python 3.x
- PyCharm IDE (or any Python environment)
- Clone or copy the project files.
- Open the project in PyCharm.
- Run
calculator.pyto use the calculator. - To run tests, run
test_calculator.pyusing pytest.
pip install pytest
| Operation | Input | Output |
|---|---|---|
| Add | 10 + 5 | 15 |
| Subtract | 10 - 5 | 5 |
| Multiply | 10 * 5 | 50 |
| Divide | 10 / 5 | 2.0 |
| Divide | 10 / 0 | Error |
Shaik Rakheeb - (https://github.com/shaikrakheeb28)