🚀 Build. Calculate. Learn! This lightweight Python command-line calculator brings basic arithmetic straight to your terminal. Perfect for coding beginners, it’s a hands-on and engaging way to master user inputs, conditional logic, and error handling in Python.
- Basic Arithmetic Operations: Easily perform addition (
+), subtraction (-), multiplication (*), and division (/). - Precision Formatting: Division results are automatically formatted to display exactly two decimal places for better readability .
- Robust Error Handling: Implements a
try-exceptblock to gracefully catch unexpected invalid inputs and display the error message without abruptly crashing the program .
Before running this project, ensure you have the following installed on your machine:
- Python 3.x
Follow these simple steps to run the calculator on your local machine:
- Clone this repository to your local machine or download the
project_Calclutor.pyfile - Open your Terminal or Command Prompt.
- Navigate to the directory where the file is located.
- Execute the following command:
python project_Calclutor.py