Question: Write a function process _ matrix ( matrix ) that takes a 2 D list ( matrix ) as input. The function should add 1
Write a function processmatrixmatrix that takes a D list matrix as input. The function should add to all odd numbers and subtract from all even numbers in the matrix. The function should return the modified matrix. Hint: you can call your iseven' function from question Inputs: matrix D list of integers
Outputs: Modified matrix D list of integers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
