A simple Python calculator that allows the user to perform basic arithmetic operations:
Addition (+), Subtraction (-), Multiplication (*), and Division (/).
-
The program asks the user to input:
- First number
- Second number
- A mathematical operation (
+
,-
,*
,/
)
-
It performs the chosen operation and prints the result.
-
It also:
- Prevents division by zero
- Handles invalid operations gracefully