Python return statement is used in functions to return certain value to the arguments of function. The lines after the return statements are not executed.
Python Course – return statement

Pankaj Kumar
I have been working on Python programming for more than 12 years. At AskPython, I share my learning on Python with other fellow developers.