SciPy - Integration with Scientific Ecosystem
What will the following code output?
import numpy as np
import scipy.optimize as opt
def f(x):
return (x - 3)**2
result = opt.minimize(f, 0)
print(round(result.x[0], 2))