Showing posts with label The return Statement. Show all posts
Showing posts with label The return Statement. Show all posts

Tuesday, March 13, 2018

The return Statement


The return Statement in Python 3


The statement return [expression] exits a function, optionally passing back an expression to the caller. A return statement with no arguments is the same as return None.

All the examples given above are not returning any value. You can return a value from a function as follows-


and the output is: