Plp academy week 1 python assignment
A simple Python calculator that performs basic arithmetic operations.
- Takes two numbers from the user
- Performs addition (+), subtraction (-), multiplication (*), or division (/)
- Shows the result
-
Run the program:
python calculator.py
-
Enter your numbers and choose an operation when prompted
Enter the first number: 20
Enter the second number: 5
Choose an operation (+, -, *, /): +
Result: 20 + 5 = 25
- Works with decimal numbers
- Prevents division by zero
- Simple and easy to use