Question: Write a function math expr() that takes one parameter, expressions, which is a list of strings, each being a potential mathematical expression. Please Use python
Write a function math expr() that takes one parameter, expressions, which is a list of strings, each being a potential mathematical expression.

Please Use python to solve the problem
Part II: Mathematical Expressions (20 points) Write a function math.expr ) that takes one parameter, expressions, which is a list of strings, each being a potential mathematical expression. Your function should examine each string in the list and return a list of indexes of the strings which meet the following description/requirement: A valid expression string starts with (1) a positiveor negative - symbol, directly followed by (2) a real number, followed by (3) one or more spaces, followed by (4) one of the following operators: +or,followed by (5) one or more spaces, followed by (6) a positive or negative symbol, directly and concluding with (7) another real number. An example of this format is '+6.6-2.2 Note: For the purposes of this function, a valid real number begins with one or more digits, directly followed by a decimal point, directly followed by one or more digits. Example of this format include 0.0' or '31.21' meaning that the number always has an integer part and a fractional part. Examples: expressions! = expressions2= [, +1.1 [, 31.11 * -1.1, , , +3213.321 / -121. 1', ,-131.5--11.5'] ^ 2?' , +123.321 ^ +321. 123,' , +1.23 + -123.0%] Function Call math.expr (expressions1) [0, 1, 2] math.expr (expressions2) [1, 2] math.expr (expressions3) |[] Return Value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
