This is a simple command-line calculator written in Python. It allows users to perform basic arithmetic operations interactively.
- Addition
- Subtraction
- Multiplication
- Division (with error handling for divide-by-zero)
- Menu-driven interface
- Loops until user exits
- Handles invalid input choices
- Make sure you have Python installed.
- Open a terminal or command prompt.
- Navigate to the folder containing
calculator.py. - Run the program using:
python calculator.py
Follow the on-screen instructions.
๐ Files Included
calculator.py # Main Python file
README.md # This file
๐งช Sample Output
mathematica
Options:
1. Add
2. Subtract
3. Multiply
4. Divide
5. Exit
Choose operation (1/2/3/4/5): 3
Enter first number: 4
Enter second number: 6
Result: 24.0
๐ ๏ธ Technologies Used
Python 3.x
Terminal / CLI
๐โโ๏ธ Author
Name: Dipesh Sahani
Project: Task 1 โ Calculator CLI App