Write a program to add titles for the X-axis, Y-axis and for the whole chart in below code.
import matplotlib.pyplot as plt Months = ['Dec', 'Jan', 'Feb', 'Mar'] Attendance = [70, 90, 75, 95] plt.bar(Months, Attendance) plt.show()
import matplotlib.pyplot as plt Months = ['Dec', 'Jan', 'Feb', 'Mar'] Attendance = [70, 90, 75, 95] plt.bar(Months, Attendance) plt.xlabel('Months') plt.ylabel('Attendance') plt.title('Attendance Report') plt.show()