Question: Create a Python program that processes a list of data to return the minimum, maximum, and average values in the list for all data values

Create a Python program that processes a list of data to return the minimum, maximum, and average values in the list for all data values in a user-specified range. Details:

The data are numbers between 1 and 100 (perhaps representing sensor readings). Your code must work on any list of data in that range. Two samples:

data = list(range(1,101))

data = [1, 9, 13, 25, 42, 55, 59, 63, 68, 69, 70, 70, 70, 70, 72, 75, 85, 99, 90, 85, 44, 23, 55, 66, 77]

Prompt the user for two numbers: a lower bound (inclusive) and an upper bound (inclusive).

For each data item only process it if it is within the lower and upper bounds (inclusive).

Compute the minimum, maximum, and average values (in the bounded range).

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!