Home / Expert Answers / Mechanical Engineering / expert-use-python-to-solve-the-problem-yo-can-only-use-random-math-and-copy-module-to-solve-this-pa863

(Solved): expert use python to solve the problem. yo can only use random, math and copy module to solve this, ...



expert use python to solve the problem. yo can only use random, math and copy module to solve this, keep it simple as possible. don't share with others.

1. (30 pts) Create a Python program that finds the maximum, minimum, mean, mode, and median of a list, tuple or matrix and pr

1. (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 Minimum Mean z.zzz Mode Median b A is a list: Maximum Minimum Mean z.zzz Mode Median A is a tuple: Maximum Minimum Mean = z.zzz Mode Median Your program must consist of a function: def analyze (A) : where is either a list, tuple or matrix and returns the results as a tuple (e.g., return ("tuple", , mean, mode, med)), and a function def main () : that calls analyze with first a 10x10 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_" : \# prevents call to main if imported


We have an Answer from Expert

View Expert Answer

Expert Answer


Here's the Python pro
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe