Problem 2: Bar Chart of Subject Scores
Easypython
Problem Description
Write a Python program that creates a bar chart comparing scores across 4 different subjects, with a distinct color and appropriate labels.
Input
A list of 4 subject names and a corresponding list of 4 scores.
Output
A displayed bar chart comparing the 4 subjects.
Constraints
- Scores must be between 0 and 100.
Example Input
textsubjects = ["Math","Science","English","History"] scores = [88, 75, 92, 68]
Example Output
text(A bar chart window comparing scores across 4 subjects, with title "Subject Scores")
Concepts Covered
plt.bar(), titles, axis labels, color customization.