A simple command-line calculator built using Python.
This project performs basic arithmetic operations based on user input.
. Addition (+) . Subtraction (-) . Multiplication (*) . Division (/) . Handles division by zero errors . Simple and beginner-friendly structure
The program:
- Asks the user to enter the first number.
- Asks the user to choose an operator (+, -, *, /).
- Asks the user to enter the second number.
- Performs the selected operation.
- Displays the result.
The calculator uses separate functions for each arithmetic operation:
add(a, b)subtract(a, b)multiply(a, b)divide(a, b)
- Make sure Python is installed on your system.
- Clone the repository or download the file.
- Open terminal in the project folder.
- Run:
👨💻 Author Fraol Muluneh