This is a simple command-line calculator implemented in Python. It supports basic arithmetic operations such as addition, subtraction, multiplication, and division.
To get started, clone the repository and navigate to the python-calculator directory:
git clone <repository-url>
cd python-calculator
Then, install the required dependencies:
pip install -r requirements.txt
You can run the calculator by executing the following command:
python src/calculator.py
- Addition
- Subtraction
- Multiplication
- Division
- Addition:
2 + 3
results in5
- Subtraction:
5 - 2
results in3
- Multiplication:
4 x 2
results in8
- Division:
8 / 2
results in4
Feel free to submit issues or pull requests to improve this project.