Here are the steps to perform linear regression on the advertising dataset to predict sales based on TV spend: 1. Import necessary libraries 2. Split data into training and test sets 3. Create linear regression object 4. Fit the model on training data 5. Predict on test data 6. Calculate accuracy on test data 7. Print coefficient and intercept values from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split # Split data into training and test sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42