Question 2: Numpy and Line Plot
Run the following code in the template file to load data into a Numpy array:
flights = load_dataset('flights')
data = np.array(flights['passengers'])
Make a line plot to show the data in the array and draw a horizontal line to show the average of the values. Your figure should look like this:
(b) Find all the elements that are larger than the average and count them. Print these elements, their indexes, and the number (count) of these elements.