Question: IN PYTHON Develop a Python program that contains the following functions: - create_matrix (r, c) - matrix_oddnumber_count (matrix, r, c) The functions must do the

IN PYTHON

Develop a Python program that contains the following functions: - create_matrix (r, c) - matrix_oddnumber_count (matrix, r, c)
The functions must do the following: - create_matrix (r, c) Receive two integers, the number of lines and the number of columns. The function must capture the integers to fill in the matrix (r * c numbers) and return the newly created matrix. - matrix_oddnumber_count (matrix, r, c) Receive the matrix created in crea_matriz (r, c), scroll through it and add the number of odd numbers in the matrix. Returns an integer with the number of odd numbers in the matrix.

odd numbers : 3, 5, 7, 9

EXAMPLE:

3 2 3 1 3 -8 7 5

OUTPUT

5

EXAMPLE2:

4 3 2 9 3 3 7 6 5 -9 -8 6 10 88

output

6

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!