Reggie's Linear Regression NEEDS to mention resetting datapoints variable

Others have mentioned this in other posts as well, but I believe that the final “Cell” in Part 2 would have been A LOT more intuitive for first time developers if you instruct students to reset the datapoints variable.

The problem currently is that datapoints gets set to datapoints = [(1, 1), (3, 3), (5, 5), (-1, -1)] in Cell 11. Then there are not any instructions to set datapoints back to what you see in Cell 4: datapoints = [(1, 2), (2, 0), (3, 4), (4, 4), (5, 3)]

This is a huge gap for students trying to learn Python & Jupyter Notebooks for the very first time…

See … you can make your list change anytime because list is always mutable. Check below mentioned screenshot. So in your case it might have used previous datapoints.

Thanks