Not able to solve this problem. and in the hint section answer is given in C++ . So can u please provide me the soluton in python

Can u please give the sloution of this program in Python

Please attach the problem in the post as well.

Hey, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.