This project is a simple command-line calculator built as an introductory exercise in structured programming. It demonstrates the use of sequence, selection, repetition, and modularity through basic arithmetic operations.
-
Addition ➕
-
Subtraction ➖
-
Multiplication ✖️
-
Division ➗ (with division-by-zero handling)
-
Interactive menu loop until the user exits
-
Input validation for incorrect or non-numeric values
-
Functions for modular and clean code organization
-
Optional: operation history tracking
The project aims to help beginners understand how to structure code using fundamental programming concepts and good practices.
1.Clone the repository:
git clone https://github.com/your-username/mini-calculator.git
2.Run the program with Python:
python calculator.py
-
Applying the structured programming paradigm
-
Using control structures (loops and conditionals)
-
Handling errors and validating user input
-
Writing reusable functions for clarity and maintenance