Intercept

Return slope-intercept form of the equation of a line through two points
import sys x1=float(sys.argv[1]) y1=float(sys.argv[2]) x2=float(sys.argv[3]) y2=float(sys.argv[4]) m = (y2-y1)/(x2-x1) b = y1 / (m * x1) print 'y =',m,'x +',b
 * 1) !/usr/bin/python

or

from sys import argv x1, y1, x2, y2 = [float(f) for f in argv[1:]] m = (y2 - y1) / (x2 - x1) b = y1 / (m * x1) print(f"y = {m} x + {b}")