Thursday, April 16, 2026

subjects = ['Math', 'Science', 'English', 'Social Studies'] scores_before = [70, 75, 65, 80] scores_after = [85, 88, 80, 90] x = np.arange(len(subjects)) width = 0.35 fig, ax = plt.subplots() bars1 = ax.bar(x - width/2, scores_before, width, label='Before') bars2 = ax.bar(x + width/2, scores_after, width, label='After') ax.set_ylabel('Scores') ax.set_title('Impact of Life Skills on Academic Performance') ax.set_xticks(x) ax.set_xticklabels(subjects) ax.legend() plt.show()

No comments:

Post a Comment

subjects = ['Math', 'Science', 'English', 'Social Studies'] scores_before = [70, 75, 65, 80] scores_after = ...