# Get row numbers of NumPy array having element larger than X in Python # importing libraryimport numpy  # create numpy arrayarr = numpy.array([[1, 2, 3, 4, 5],                  [10, -3, 30, 4, 5],                  [3, 2, 5, -4, 5],                  [9, 7, 3, 6, 5]                  ])  # declare specified valueX = 6  # view arrayprint("Given Array:\n", arr)  # finding out the row numbersoutput  = numpy.where(numpy.any(arr > X,                                axis = 1))  # view outputprint("Result:\n", output)