Question: Python 3.0 HELP!!!! To practice testing for functions you write yourself. Degree of Difficulty Moderate For each of the following, implement the stated function, and
Python 3.0 HELP!!!!

To practice testing for functions you write yourself. Degree of Difficulty Moderate For each of the following, implement the stated function, and test it: The function median3(num1, num2, num3) returns the median value of its three inputs. For example, given the numbers 2, 7, 0, the median is 2. It's the number that would be in the middle if the numbers were put in increasing (or decreasing) order. For another example, the median value of 2, 1, 2 is also 2. The function majority (num _ list) returns True if at least half of the numbers in the input list are positive (strictly greater than zero). For example, the function should return True for the list [1, 2, 3] (because there are three positive numbers, which is more than half) and False for the list [0, -1, 1, -1, 0] (because there is only 1 strictly positive number, which is not more than half). Your testing can be done using the techniques given in the textbook (Chapter 15), or as demonstrated in labs. What to Hand In A document called a5q3.py containing your functions and testing code as described above. You can put your test driver in this document, or you can submit a separate test-driver script named a5q3_testing.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
