Question: I want these code to converted in PYTHON. it just a conversion don't make an excuse 1 question policy if u don't want to answer




![f(x) = Vx2 +1 over [0,2] with 10 subintervals using the Composite](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f96d095cc90_40966f96d093c6f9.jpg)
I want these code to converted in PYTHON. it just a conversion don't make an excuse 1 question policy if u don't want to answer please leave my question will refunded.
Problem 10 Composite Trapezoidal rule Question 31: Write a C++ program to evaluate the integral of f(x) = Vx2 +1 over [0,2] with 10 subintervals using the Composite Trapezoidal rule. #include #include using namespace std; int main() intniji double h , sum , I , x0, xn, xc, fxo, fxn, fxc; - // //-- Input Section cout> XO cout> xn cout>n; -- // Processing Section h = (x - x0); // finding step size fx0 = sqrt(x0*x0 + 1); fxn = sqrt(xnxn + 1); I = fxo + fxn; x = x0 ; sum = 0.0 ; for(j=1 ; j #include using namespace std; #define N 100 // maximum number of iterations int main() { int k ; double xn, xp, fxpdfxp ; cout> xn; Processing Section -- // for (k=1 ; k #include