Single Linear Regression Python Code With Card