python plot

from matplotlib import pyplot as plt
plt.plot([0, 1, 2, 3, 4, 5], [0, 1, 4, 9, 16, 25])
plt.show()

Here is what the above code is Doing:
1. We’re creating a list of numbers from 0 to 5.
2. We’re creating a list of numbers that are the squares of the numbers in the first list.
3. We’re plotting the first list on the x-axis and the second list on the y-axis.
4. We’re asking Matplotlib to show us the plot.