Question: in python Defined below is a 10 by 10 matrix of numbers. For this problem you will write 3 functions to manipulate and transform the

 in python Defined below is a 10 by 10 matrix of
numbers. For this problem you will write 3 functions to manipulate andin python

Defined below is a 10 by 10 matrix of numbers. For this problem you will write 3 functions to manipulate and transform the data according to the discriptions given in the question 86). In 1: data - 139, 87, 43, -5, 23, 55, 52, 41, 90, 96), 128, 51, 35, 64, 17, 54, 7, 26, 7, 12, 69, 92, 22, 58, 80, 93, 67, 8, 291 12 83, -1, 98, 77, 32, 50, 61, 2, 351, 145, 30, 68, 71, 16, 60, 51, 46, 100,561 123, -3, 93, 60, -9. 1 82, 97, 41, 80). 195, 90, 75, 70, -10,60, 53, 95, 32, 21). 183, 31, 80, -2, 14, 62, 10, 20, 92, 91, 192, 59, 47, 1, 0. 30, 55, 52, 3. 281 [60, 27. 80. 5, 60, 32, 94, 59, 16, 9211 Question 1 Write a function called average_rows. This function will tako a 10 x 10 matrix as its only argument and should return a list where each element is the average of a row. The expected output for the matrix above in: (62.1, 37.5, 52.0, 43.9, 54.3, 46.5, 58.9.40.6, 36.7.62.6) In ! 11 your code goes here Question 2 Write atunction called average cols. This function will tako * 10 x 10 matrix and its crty gument and should return a list www oth element is the average of a column. The expected output for the matrix above is: (46.9.524.612.38.4. 246, 47,4,555.564,001, 58.11 to your code goes here Is It AUTOGRADER TOT - BO NOT REMOVE tot E AUTOGRADER TET - 10 MOT MIHOVE Question 3 Write function called sum posney This function will take a 10 x 10 mars is only argument and should return atuple where the first for the sum of the positive intents and the second cements the sum of the negative elements. The expected output for the matte above is: 1750-30 T 111 outcode here

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!