SciPy curve fitting
Objective: OBJECTIVE: To curve fit given data using linear and cubic polynomial. For curve fitting, we imported curve_fit from scipy library. Defined two function, func and func1 which are used for fitting curve. Defined another function read_file to read temperature and cp values. Values were split using (,) and values were append…