How do two equal-length lists become a line on screen, and why does the order of the points change the picture?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Before plt.plot(nVals, cubic) can draw the cube curve, the data has to exist. Build nVals, the whole numbers from 0 to 29, and cubic, the cube of each matching entry of nVals. A loop with append or a list comprehension over range both work. Assign the lists to nVals and cubic.