195
196
197
198 #print(x)199 #print(ys)
200
201 # setting the axes at the centre
61 i = int(i) + 1
62
63
64 print("The data points you entered: ") 65 print(data_point_list_x)
66 print(data_point_list_y)
67
70
71
72
73 elif operation == 2: 74 print("Enter a function solving for y")
75 print("Put NO spaces in the function")
76 print("If x has no coefficient, put 1")
190 plot_regression_line(x, y, b)
191
192
193 if __name__ == "__main__":194 main()
195
196
173 plt.show()
174
175
176 def main():177 # observations / data
178 x = np.array(data_point_list_x)
179 y = np.array(data_point_list_y)
Two blank lines are expected between functions and classes and one blank line is expected between methods of a class.