A simple Python calculator that performs basic arithmetic operations. The calculator supports addition, subtraction, multiplication, and division. It includes error handling to handle scenarios like division by zero.
A basic calculator application in Python.
Welcome to my Calculator App! This project is a simple calculator implemented in Python, allowing users to perform basic arithmetic operations.
- Addition
- Subtraction
- Multiplication
- Division
To use the Calculator App on your local machine, follow the instructions below.
Make sure you have Python installed on your machine.
-
Run the
calculator.pyscript:python calculator.py
-
Follow the on-screen instructions to choose the operation and enter numbers for calculation.
-
The result will be displayed, and you can choose to perform another calculation.
Select operation.
1. Add
2. Subtract
3. Multiply
4. Divide
Enter choice (1/2/3/4): 1
Enter the first number: 10
Enter the second number: 5
10.0 + 5.0 = 15.0
Let's do the next calculation. (yes/no): yes