While working with return statement print statement will not work?

The moment you return something, the function is terminated. So anything after the return statement does not get executed.

And please format your code.

2 Likes