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]
3y = [2,4,1,5]
4plt.plot(x, y)
5plt.show()
Output: