Question: Solve with Pycharm Find the Maximum, Minimum, Mean, Median, Mode of a list, tuple or matrix. You cannot python packages other than random, math and

Solve with Pycharm
Find the Maximum, Minimum, Mean, Median, Mode of a list, tuple or matrix. You cannot python packages other than random, math and copy.
Do the list of 100 numbers only please (no numpy or statistics)
Thanks
 Solve with Pycharm Find the Maximum, Minimum, Mean, Median, Mode of

(30 pts) Create a Python program that finds the maximum, minimum, mean, mode, and median of a list, tuple or matrix and prints the results in a formatted output like: A is a matrix: Maximum =x Minimum =y Mean =z.zzz Mode =a Median =b A is a list: Maximum =x Minimum =y Mean =2.zzz Mode =a Median =b A is a tuple: Maximum =x Minimum =y Mean =z.zzz Mode =a Median =b Your program must consist of a function: def analyze (A) : where A is either a list, tuple or matrix and returns the results as a tuple (e.g., return ("tuple", max, min, mean, mode, med)), and a function def main () : that calls analyze with first a 1010 matrix of numbers, then a list of 100 numbers, and finally a tuple of 100 numbers. In each case, the numbers should be randomly chosen between 1 and 100 . You must also call main( like: if main()name= "_main_": \# prevents call to main if imported

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!