Code Correction: The following Matplotlib code is supposed t…

Code Correction: The following Matplotlib code is supposed to create a line chart, but it has errors. Identify and fix ALL the errors. import matplotlib.pyplot as plot x = [1, 2, 3, 4, 5] y = [10, 20, 15, 25, 30] plt.plot[x, y] plt.title(“Sales Trend”) plt.xlabel = “Month” plt.ylabel = “Sales” plt.show Write the corrected code below:

Code Correction: The following scikit-learn code is supposed…

Code Correction: The following scikit-learn code is supposed to train a linear regression model and make predictions, but it has errors. Identify and fix ALL the errors. from sklearn.linear_model import linearRegression model = LinearRegression model.fit[X_train, y_train] predictions = model.predict[X_test] Write the corrected code below: