Question: by python Exercises Problem 1 Write a program to find the addition of each row in a matrix. The main section must call a function
by python
Exercises Problem 1 Write a program to find the addition of each row in a matrix. The main section must call a function called addRow() and pass the matrix. The function will add each row and then return the result to main which will print it. Sample Run: A = [ [1,2,3], [4,5,6], [7,8,9] ] Result = [6,15,24] Problem 2 Write a program to find the summation of each column in a matrix. The main section must call a function called addCols() and pass the matrix. The function will add each column and then return the result to main which will print it. Sample Run: A = [ [1,2,3], [4,5,6), [7,8,9] ] Result = (12,15,18]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
