Question: PYTHON Problem 1 complex_calc(x,y): Complex calculator [10 points] In the previous assignment, you wrote a multiply function, which performed only one operation. Your new function
PYTHON
Problem 1 complex_calc(x,y): Complex calculator [10 points]
In the previous
assignment, you wrote a multiply function, which performed only one operation.
Your new function should accept two arguments, where the first one is, an array of
float numbers, and the second is a list of math symbols (+,-,*,/, or) of size 1 less
then the first array list. For this function, should be taken to mean
exponentiation. Your program should print the result of the arithmetic operation;
e.g., for program arguments [2,3,5] and [+,*] the equation is 2+3*5 and will
return a result of 17 (remember PEMDAS). If the operator argument is not (exactly)
one of these five possible string values, then your function should return a NULL.
If the length of your second list is NOT 1 less the size of your first array parameter,
return a NULL. You do not need to check for division by zero.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
