Question: Question 2 : [ 2 5 % ] Answer question 2 in the same file, below your solution to Question 1 . Make it clear

Question 2: [25%]
Answer question 2 in the same file, below your solution to Question 1.
Make it clear that this is your solution by adding the comment
# ---- Question 2----
and only working below that comment.
Create a loop that will accept inputs from the user. The loop will exit when the user enters the input "quit".
Choose 1 of your solutions from part 1 and consider the required inputs.
Inside the loop, ask the user to input the required values. Check if the values entered meet the assumptions of the function. If they do, then call the function with the given input. If they do not, state which input was violated and do not run the function.
For example: if I chose 1c and I entered 1 or more negative values we would not run the function because the assumption states the numbers must be greater than 0.
You may assume that whatever the input values are, that they will be valid numbers, or the string "quit".
 Question 2: [25%] Answer question 2 in the same file, below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!