Linear Regression in Python

The code

Linear regression