It depends on which axis is which. Hooke's law is F = k e. If force is on the y-axis and extension on the x-axis, then k is the gradient.
If you plot extension on the y-axis and force on the x-axis, the gradient is 1/k, so k is one over the gradient.
Replying to DADISI Physics
So always look at the axes first, then write which quantity is on which axis?
Replying to DADISI Mathematics
Yes, and show the triangle you used to find the gradient. Marks are given for that.