Simple Python Calculator This Python project implements a simple calculator with basic arithmetic operations such as addition, subtraction, multiplication, and division. It provides a command-line interface for users to perform calculations.
Usage Running the Calculator To run the calculator, execute the main.py file using Python. Here's how to use it:
bash Copy code python main.py Performing Calculations Once the calculator is running, follow the on-screen prompts to enter the numbers and select the operation you want to perform. For example:
markdown Copy code Welcome to the Simple Calculator!
Enter the first number: 10 Enter the second number: 5
Select operation:
- Addition
- Subtraction
- Multiplication
- Division
Enter choice (1/2/3/4): 1
Result: 10 + 5 = 15 Follow the prompts to perform additional calculations as needed.
Files main.py: Contains the implementation of the simple calculator with functions for addition, subtraction, multiplication, and division. README.md: This file, providing information about the project and how to use it.