I've been tying to use np.where to find the x value that corresponds to the maximum y value of a parabola, here is what I did :
import numpy as np
x = np.arange(-10,10,step=1)
y = x**2+2*x
x = np.where(y=max)
print(x)
This clearly doesn't work