Part-3 Bar Graphs are commonly used to represent data. Lets see how to plot attractive and insightful bar graphs using matplotlib. 1. Plot a simple bar graph with two arrays. plt.bar([0,1,2,3],[12,23,21,8]) You can see the bars are centered around 0,1,2 and 3 x-coordinate. Now let's see how can we plot graphs to compare data of two years. Suppose…