SciPy - Integration with Scientific Ecosystem
Identify the error in this code snippet:
import matplotlib.pyplot as plt from scipy.optimize import minimize result = minimize(lambda x: x**2, 2) plt.plot(result) plt.show()
