Question: Can you please help do this in Python? Thanks + 5 3 1.66666666666666667 Create a Python script: 5 3 1.0 % 5 3 2.0 1.

Can you please help do this in Python? Thanks
+ 5 3 1.66666666666666667 Create a Python script: 5 3 1.0 % 5 3 2.0 1. Create a script named X 6.5 2.3 14.95 equation_parser.py 7.4 3 10.4 3.3 1.1 2.999999999999996 2. Create a function named 3 4 0.0 continue_loop a. It accepts nothing. b. Prompts the user to continue. c. The user can enter any of the following answers for opting whether or not to continue: i. Acceptable answers are: y, yes, n, no ii. These need be to handled case insensitive (case does not matter). 1. Use upper() or lower() functions to help validate input. d. If the user enters any other than the than the values above, inform the user and continue to prompt the user until they enter a correct value. e. Returns a Boolean; true to continue, false to stop. i. Does not return until a valid answer is entered. 3. In the script, prompt the user for the equation to parse. 4. Iterate each character in the string and using the appropriate functions, check whether the character is a digit, operator, or space. a. If it is a digit, append the digit character (add to the end of) a string which will be the first operand. b. If it is a space or math symbol, stop appending to the first operand. c. If it was a symbol, store the symbol character. d. After the first operand has been stored, any following digits need to be added to a second operand. 5. When you have iterated every character, use the get_math_answer() function to get the correct answer using the operator and operands. 6. Display equation and the user to the user nicely formatted. a. The displayed equation must have spaces around the operator even if the user's equation did not have them. b. You must use the string format method. "format string".format(a1, a2, ...) i. You must provide at least two arguments to be formatted using string.format(). ii. This is the format that uses curly braces { } c. Your results do not have to look like mine, but you must use the format method off of the string object. 7. Continue until the user opts not to continue entering equations. Hints: Remember, code a little and test. Always keep a working program. For example, start with writing the code to just allow the user to enter a single equation and parsing it before adding the feature to continue until opting out. Functions specified in an assignment are the minimum. It is often easier to make additional functions to break up your code and make it easier to write. You can iterate a string by index or by letter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
