Classwork:
You will be drawing a sketch like this one
1. Draw a visualization for the Circle_Calulations_YI.py
2. Draw a visualization for the following assignment:
Write a program, Alge_Calc_WFunctions_YI.py to simulate a 4-function calculator.
Follow these guidelines:
a. Define dataInput function to prompt the user for two integer numbers and passes them to the other functions. Here is the syntax to pass more than one parameter: return [num1,num2]
b. Define function menu:
- Add
- Subtract
- Multiply
- divide
c. Define a function for each operation
def add(nums):
def subtract(nums):
def multiply(nums):
def divide(nums):
d. main should look like this:
Welcome to "My Python Calculator" Would you like to 1. Add 2. Subtract 3. Multiply 4. Divide Select your option by entering the number 1 Enter a number 4 Enter another number 9 The sum of 4 and 9 is 13 Would you like to do another operation? y/n