Tuesday, April 21, 2020


# # Bar Graph part 2
import matplotlib.pyplot as plt


ages = [10,13,14,12,55,44,33,22,66,23,45,67,87,65,43,21,77,88,20,43,50,39,56,76,89,70,60,50,40,90]

ids =  [x for x in range(len(ages))]
plt.bar(ages,ids)

plt.xlabel("x")
plt.ylabel("y")
plt.title("Bar Graph")
plt.show()


# In[ ]:




No comments:

Post a Comment