Skip to main content

--description--

This first video will focus on the slope of a line and how to calculate it.

Here is the Colab notebook used in this and the next videos.

--question--

--text--

If you have already defined these variables, which of the following is the correct slope formula?

--answers--

slope = (x1 - x2) / (y1 - y2)


slope = (x2 - x1) / (y2 - y1)


slope = (x1 - y1) / (x2 - y2)


slope = (y2 - y1) / (x2 - x1)

--video-solution--

4