Question: Using Python 3.Thanks. my_list=[[0 , 1, 4, 17, 67, 76, 51, 28, 3, 1, 0, 0],[0, 1, 8, 28, 69, 129 , 83, 55, 19,

Using Python 3.Thanks.

my_list=[[0 , 1, 4, 17, 67, 76, 51, 28, 3, 1, 0, 0],[0, 1, 8, 28, 69, 129 , 83, 55, 19, 4, 0, 0],[0, 0, 0, 0, 8, 86, 55, 0, 0, 0, 0, 0],[0, 1, 10, 24, 43, 64, 58, 58, 26, 12, 0, 0],[0, 0, 2, 15, 56, 116 , 51, 8, 0, 0, 0, 0]]

the result I want is:

[0, 0.6, 4.8, 16.8, 48.6, 94.2, 59.6, 29.8, 9.6, 3.4, 0, 0]

Here, for example, the third number 4.8 is the mean of each third position in their list.

4.8 =(4+8+0+10+2)/5

You can see the result i want is the mean of each number in their particular position in these lists.

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!