A simple command-line calculator built in Python.
This project was developed as part of the Elevate Labs Internship (Task 1).
- Addition
- Subtraction
- Multiplication
- Division (with error handling for division by zero)
- Square root calculation
- Exponentiation (x^y)
- Interactive menu with loop until exit
-
Install Python (if not already installed).
- Download from python.org and install.
- Verify installation by running:
python --version
-
Clone this repository:
git clone https://github.com/your-username/task-1-calculator-cli.git
-
Navigate into the project folder:
cd task-1-calculator-cli -
Run the script:
python calculator.py
-
The calculator menu will appear in your terminal. Enter a choice (1โ7) and follow the prompts.
- Language: Python 3
- Editor: VS Code / any text editor
- Interface: Command Line (CLI)
- Functions in Python
- Loops and conditionals
- Error handling (
try/except) - CLI interaction with
input()
task-1-calculator-cli/ โ โโโ calculator.py # Main script โโโ README.md # Project documentation โโโ screenshots/ # Optional folder for images
- Support floating-point numbers
- Add more operations (factorial, logarithm, trigonometric functions)
- Build a GUI version using Tkinter or a web version using Flask
- Ministry of MSME, Govt. of India โ Elevate Labs Internship
- Self-research and practice with Python basics
This is a **proper README** with all the details included โ features, how to run, tech stack, learning outcomes, structure, improvements, and acknowledgements.
Would you like me to also suggest a **short GitHub repo description and tags** (like `python`, `cli`, `calculator`, `internship`) so your project looks polished and discoverable?