Question: Problem 2 Using the same list l from Problem 1 use a for loop to compute the mean (average) of l stored in a variable

Problem 2

Using the same list l from Problem 1 use a for loop to compute the mean (average) of l stored in a variable l_avg. The correct answer is 4.286 for these values. Your code should work for any list with numerical values; you can't hard-code the length of l or any of its elements.

List I from Problem 1 : I = [1, 2, 3, 4, 5, 6, 7, 8]

python:

In [ ]: #your code goes here, you can add more cells below this.

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!