Ms. Anjali, a data analyst, has been assigned the task of creating a histogram to display the age distribution of ten participants in a workshop. She has been provided with the following list of their ages:
Ages = [22, 25, 24, 28, 30, 24, 29, 27, 21, 23]
She has started writing a Python program for it. However, the code is incomplete. Help her complete the program by filling in the missing parts, so that the histogram as shown below is displayed.
import matplotlib.pyplot as plt
Ages = [22, 25, 24, 28, 30, 24, 29, 27, 21, 23]
binsize=[20,22,24,26,28,30]
plt.________(Ages, bins=binsize, edgecolor = 'black', label = 'Participants') # Statement-1
______.xlabel('Age') # Statement-2
plt.ylabel('Number of Participants')
plt.title("Age Distribution")
plt.________ # Statement-3
___________ # Statement-4
I. Write the suitable code for the blank space in the line marked as Statement-1 which plots the histogram.
II. Fill in the blank in Statement-2 to use the correct alias of the required module to set the label on x axis.
III. Fill in the blank in Statement-3 with the correct Python code to display the legend on the graph.
IV. Fill in the blank in Statetment-4 with the appropriate Python code to display the graph.