Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started