Python code please
ZERO THE HERO He Can Help Us Count By Tane ind This’s an easy one. You are given a matrix with Mrows and N columns. Elements in matrix can be either 1 or 0. Each row and column of matrix is sorted in ascending order (which means at any row or column the 0 are first) Find number of O-s in the given matrix. Input is the file Z.m. One example of input data is: 100 oo O 0 0 1 0 0 0 1 Z= 0 0 1 1 0 1 1 1 L1 1 1 1 If the input is the matrix above, your code should produce: “Nine (9) zeros are present.” The input matrix has the constrains: 1<= N, M <= 1000. Show transcribed image text ZERO THE HERO He Can Help Us Count By Tane ind This’s an easy one. You are given a matrix with Mrows and N columns. Elements in matrix can be either 1 or 0. Each row and column of matrix is sorted in ascending order (which means at any row or column the 0 are first) Find number of O-s in the given matrix. Input is the file Z.m. One example of input data is: 100 oo O 0 0 1 0 0 0 1 Z= 0 0 1 1 0 1 1 1 L1 1 1 1 If the input is the matrix above, your code should produce: “Nine (9) zeros are present.” The input matrix has the constrains: 1
Expert Answer
Answer to ZERO THE HERO He Can Help Us Count By Tane ind This’s an easy one. You are given a matrix with Mrows and N columns. Elem…