Login using Social Account
     Continue with GoogleLogin using your credentials
In this assignment, we will create a function that takes 2 ndarrays
of same size as input, checks if both of them have same elements in the same position, and returns the index of those matching elements.
compare_ndarray
ndarray
(arr1
, and arr2
) of same size as parametersNow, define 2 Numpy arrays a
, and b
as follows:
a = np.array([0, 1, 2, 3, 4, 5, 6])
b = np.array([6, 5, 4, 3, 2, 1, 6])
Use the function you just created to compare the above 2 arrays
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...