import math
x1= float(input(“enter the value for x1: “))
y1= input(“enter the value for y1: “)
x2= input(“enter the value for x2: “)
y2= input(“enter the value for y2: “)
b = input(“enter y-intersect: “)
slope = (y2-y1)/(x2-x1) print ‘y=’,slope,’x+ ‘, b