def FitLine(xs, inter, slope):
 fit_xs = np.sort(xs)
 fit_ys = (inter + (slope * fit_xs))
 return (fit_xs, fit_ys)

def FitLine ( xs , inter , slope ) : fit_xs = np . sort ( xs ) fit_ys = ( inter + ( slope * fit_xs ) ) return ( fit_xs , fit_ys )
fits a line to the given data .