Find Number Of Rows And Columns Of Matrix In Python