Question: PYTHON Problem 3 get_mid(mm1,mm1): Merge middle numbers [10 points] Write a function named get_mid(mm1,mm1) that accepts 2 parameters that are multidimensional arrays of any size.

PYTHON

Problem 3 get_mid(mm1,mm1): Merge middle numbers [10 points] Write a function named get_mid(mm1,mm1) that accepts 2 parameters that are multidimensional arrays of any size. The function returns one multidimensional array filled with the middle numbers from both both parameters combined. The dimension of the multi-dimensional array being returned will be number of rows of the first matrix by the number of columns of the second matrix. In situations where there isnt an even number of middle numbers, take the larger numbers.

The numbers should be returned in ascending order.

Example 1:

Parameter 1 - 3|4

10|6

Parameter 2 - 1|5|6

7|8|2

The total list of numbers becomes 1,2,3,4,5,6,6,7,8,10

Returns: 3|4|5

6|6|7

Example 2:

Parameter 1 - 3|4

10|6

5|7

Parameter 2 - 1|5|6

7|8|2

The total list of numbers becomes 1,2,3,4,5,5,6,6,7,7,8,10

Returns: 3|4|5

5|6|6

7|7|8

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!