Question: Filename: assign 3 - 5 . py Define calstats function that calculates some basic statistics from a set of sales. This function takes the five

Filename:
assign3-5.py
Define calstats function that calculates some basic statistics from a set of sales. This function takes the five sales as parameters, calculates the min, max, range (the difference between max and min), and average, and prints the output as shown below. You can use min and max function or if/else to find the minimum and maximum values.
Write a program that takes the 5 sales, finds the basic statistic info using the calcstats function. Before calling your function, ensure that all inputs are entered as numbers. In addition, make sure that the correct number of arguments are provided (there should be 5 inputs).
Input:
Output:
a) Min: 50
Max: 600
Range: 550
Average: 250.0
b) The wrong number of sales provided.
c) All inputs should be numeric.
 Filename: assign3-5.py Define calstats function that calculates some basic statistics from

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!