The code seems self-explanatory. Following steps were followed:
Define the x-axis and corresponding y-axis values as lists.
Plot them on canvas using .plot() function.
Give a name to x-axis and y-axis using .xlabel() and .ylabel() functions.
Give a title to your plot using .title() function.
Finally, to view your plot, we use .show() function.
Graph Plotting in Python | Set 1 : https://www.geeksforgeeks.org/graph-plotting-in-python-set-1/
Graph Plotting in Python | Set 2 : https://www.geeksforgeeks.org/graph-plotting-python-set-2/