This Python assignment involves creating a basic calculator program to perform arithmetic operations based on user input.
- Function Usage: Define and use functions in Python.
- User Input: Gather input using
input()
. - Conditionals: Utilize if/else for operation handling.
- Error Handling: Implement basic error handling.
- Documentation: Document code with concise comments.
- User Input: Collect two numerical values.
- Operation Input: Obtain the desired arithmetic operation.
- Function: Implement a function for arithmetic operations.
- Output: Display the result.
main()
Function: Orchestrates program flow.math()
Function: Performs arithmetic operations.
- Run the script.
- Enter values and choose an operation.
- View the calculated result.