title: Function to find if a point lies on a line given two points in python
body: <pre><code>def isOnLine(xCord1, yCord1, xCord2, yCord2, xCord3, yCord3):
      mSlope = (yCord2 - yCord1) / (xCord2 - xCord1)
      return mSlope
  lineEquation = y - yCord1 = mSlope * (x - xCord1)
  </code></pre>
  
  <p>What I need is a function that when given three coordinates, will determine a line from the first two coordinates and then take the third coordinate and see if it falls on the line, returning a bool indicating  true if the coordinate does fall on the line or a false if the coordinate does not fall on the line.
  So far all I have is a function finding the slope of a line from the first two coordinates given. I know I can take the slope and the first two coordinates and find the equation of the line and then using the equation of the line take the third coordinate and see if it lies on the line. However I can't use that equation because y and x have no assigned value, is there another way I can calculate this?</p>