Question: PYTHON 3...please help and explain. Using numpy methods is OK.. first divisible: This function takes a nonempty integer numpy matrix and an integer with default
PYTHON 3...please help and explain. Using numpy methods is OK..

first divisible: This function takes a nonempty integer numpy matrix and an integer with default value of 2 and returns a list or a 1-D array containing the indices of the first element divisible by the second argument. Your outer loop should go down the rows. If no element is divisible by the integer, return None. For instance, if the matrix is 1, 2, 91, [7, 11, 13] and the second argument is 3, the function should return [0, 2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
