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
2x = [1,2,3,4,5]
3y = [5,3,6,2,7]
4plt.scatter(x, y)
5plt.title("Sample Scatter")
6plt.xlabel("X")
7plt.ylabel("Y")
8plt.show()
Output: