Question: Write a Python function that takes a list of numbers as input and returns the minimum, maximum and average values in a new list (

Write a Python function that takes a list of numbers as input and returns the minimum, maximum and average values in a new list (i.e. list of length 3, where the item at index 0 is the minimum, the item at index 1 is the maximum, and the item at index 2 is the average.
Write a second Python functionthat takes a list of numbers, calculates the minimum, maximum, and average values for the list (i.e. calling the listsStats() function) and prints them out rounded to 3 decimal places.

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 Programming Questions!