hello I want some help to solve the problem of the program below

83 / 5,000

Translation results

Capture d’écran 2022-05-01 à 17.56.29

Based on the error message it seems that plt.plot(X1, Y, 'b') fails as the two input arrays have a different shape. Could you check the shape of both arrays and explain how plot should visualize them?

I’m new to python, I don’t know how to do it.

You can take a look at the plt.plot docs to check a few examples on how to use this method and what the expected inputs are. Once you are more familiar with the plotting mechanism, check the shapes of your current inputs via print(X1.shape) etc. and make sure they match and are indeed representing what you want to plot.