Basic Calculator Program for a beginner containing only four arithmetic functions.
This is a simple Python program that functions as a basic calculator. It prompts the user to enter two numbers and select a mathematical operation: addition (+), subtraction (-), multiplication (*), or division (/). The program then performs the selected operation and displays the result.
- The user is asked to input two numeric values.
- The user is then prompted to enter an arithmetic operator.
- The program calculates and prints the result in the format:
number1 operator number2 = result
- Supports four basic operations:
+,-,*, and/ - Prevents division by zero
- Simple and beginner-friendly structure