curve fitting
Objective: 1. popt and pcov are the out puts of the polynomials we define in order to fit the curve. popt is the coefficint values anf pcov reperesents the absolute values. 2. np.array is a numpy array of temperature which passes the temperature values to the polynomial. 3.*popt helps us refer the previously obtained coefficient…