This is a beginner-friendly Python program that performs basic arithmetic operations based on user input.
- Accepts two numbers from the user
- Supports:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Handles division by zero
-
Make sure you have Python installed
-
Clone this repo:
git clone https://github.com/GermmyKapil/Calculator-PLP/new.git cd calculator-plp -
Run the program: python calculator.py
-
๐ก Example Output
Enter the first number: 10
Enter the second number: 5
Choose an operation (+, -, *, /): *
Result: 10 * 5 = 50
๐ What I Learned User input handling
Data types (float, str)
Basic conditionals (if, elif, else)
String formatting in Python
๐ ๏ธ Tech Used Python 3.x
๐ค Author Germano Katalahali (https://github.com/GermmyKapil) [Germano Katalahali]
Feel free to fork or contribute if you have fun ideas!
- Create a new file named
README.mdin your project folder. - Paste the markdown content above.
- Save the file.
- Push it to GitHub:
git add README.md
git commit -m "Add README file"
git push origin main