Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
1import matplotlib.pyplot as plt
2cats = ["A", "B", "C"]
3vals = [10, 7, 12]
4plt.bar(cats, vals)
5plt.show()
Output: