17. WRITE A PROGRAM TO PLOT A HORIZONTAL BAR CHART FROM THE HEIGHT OF 6 STUDENTS IN YOUR CLASS.

Solution :-

import matplotlib.pyplot as plt
y=(168,175,164,158,150,159)
x=(1,2,3,4,5,6)
plt.barh(x,y)
plt.show()

Output :-