├── Calculator.py └── README.md /Calculator.py: -------------------------------------------------------------------------------- 1 | num1 = float(input("Enter the first number: ")) 2 | num2 = float(input("Enter the second number: ")) 3 | 4 | print("Sum:", num1 + num2) 5 | print("Difference:", num1 - num2) 6 | print("Product:", num1 * num2) 7 | print("Quotient:", num1 / num2) 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Calculator :) 2 | 3 | This script takes two numbers as input from the user and performs basic arithmetic operations (addition, subtraction, multiplication, and division) on those numbers 4 | 5 | ## Features 6 | - Prompts the user to input two numbers. 7 | - Performs addition, subtraction, multiplication, and division. 8 | - Displays results for each operation. 9 | - Handles invalid inputs (e.g., division by zero) with error messages. 10 | 11 | ## Usage 12 | 1. Run the script (e.g., `python calculator.py`). 13 | 2. Enter two numbers when prompted. 14 | 3. View the results of the arithmetic operations 15 | 16 | ## Requirements 17 | - Python 3.x.x 18 | 19 | ## License 20 | This project is licensed under the [MIT License](LICENSE). See the [LICENSE](LICENSE) file for details. 21 | --------------------------------------------------------------------------------