write a program that graphically plots a regression line, that is, the line with the best fit through a collection of points.First ask the user to specify the data points by clicking on them in a graphics window. To find the end of input place a small rectangle labeled done in the lower left corner of the window; the program will stop gathering points when the user clicks inside that rectangle.
Please Help this is what I have....
from graphics import*
#Make Graphics Window
#Make the Done Button
while x<=7 and y>= -9:
#Calculate xbar, ybar, and slope, y for -10 and y for 10