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:
assignpy
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 ifelse to find the minimum and maximum values.
Write a program that takes the 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 inputs
Input:
Output:
a Min:
Max:
Range:
Average:
b The wrong number of sales provided.
c All inputs should be numeric.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
