[Solved] string reversal function using reversed indexing
When you make a return call within the function, the control comes back to parent (which executed the function) ignoring the code within the scope of function after return. In your case, that is why print is not getting executed by your code. Move the line containing print before return and move return to outside … Read more