A simple Python-based calculator that supports basic operations such as addtion, subtraction, multiplication,and division. The calculator handles invalid inputs and division by zero gracefully.
- Addition: Adds two numbers.
- Subtraction: Subtracts the second number from the first.
- Multiplication: Multiplies two numbers.
- Division: Divides the first number by the second, with error handling for division by zero.
- Error Handling: Return appropriate error messages for invalid input and division by zero
-
Clone the repository:
git clone https://github.com/BlackCoder56/simple_calculator.git
-
Navigate to the project directory:
cd simple_calculator
To use the calculator, run the script in the command line:
Linux terminal
python3 main.py
Windows
python main.py
Contributions are welcome! Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License