Question: python language: Write a generic function that will create and return a list of specified length and consist of random integers within a certain range.

python language: Write a generic function that will create and return a list of specified length and consist of random integers within a certain range. Use your seed as described above. Place the required interval values as part of your function parameters. That is, the specified interval should be explicitly included lowValue, highValue, as part of your parameters.

Then use your function from above to return a list of 10 integers in the interval of 1 to 5 ( these will be the simulated hours of usage for 10 employees. Name this list: empHours = ??? print it out

c. Write a separate generic function to return the average of any numeric list.

d. Use your function (c) to find empHours average usage . print it out

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!