Practice creating Python programs to perform arithmetic and string operations, experimenting with variables, and exploring data types.
Create a simple Python program that asks the user to input two numbers and a mathematical operation (addition, subtraction, multiplication, or division).
Perform the operation based on the user's input and print the result.
Example:
If a user inputs 10, 5, and +, your program should display:
10 + 5 = 15
- calculator.py: A simple Python script using basic input, arithmetic, and print statements.
- README.md: This file explains how to use the program and includes the assignment instructions.
- Open IDLE or any Python code editor.
- Open or paste the code from calculator.py.
- Run the script.
- Follow the on-screen instructions.
Enter the first number: 10
Enter the second number: 5
Enter +, -, *, or /: +
10.0 + 5.0 = 15.0
'''