Introduction
The Python Standard Library
bool
return
Scientific Packages
numpy.where()
Numerical Methods
scipy.optimize.least_squares
scipy.optimize.curve_fit