import numby as np import matplotlib.pyplot as plt x=["comedy", "romance","action","drama","science friction",] y=["4","5","6","1","2",] plt.bar(x,y,label=bar1) plt.xlabel("x") plt.ylabel("Y") plt.title("favourite movie") plt.legend() ply.show()