I have C++ code just convert it into python please

I have a code of c++ and i want to convert it into python i shall be thankful to you.