Below is a Python program that calculates \(\theta_0\) and \(\theta_1\) from the data set used in the interactive linear regression: