def plot_hist(variable): plt.figure(figsize = (9,3)) plt.hist(pcosData[variable], bins = 50) plt.xlabel(variable) plt.ylabel("Frequency") plt.title("{} distribution with hist".format(variable)) plt.show() numericVar = [" Age (yrs)", "Weight (Kg)","Marraige Status (Yrs)"] for n in numericVar: plot_hist(n) __ __