Return
A return is an exit from a function that can include a value passed back to an invoking function.
An alternative to the return statement is the yield statement, which returns a value but retains enough state information to enable to the function to resume where it left off.
Python Example
# Define a function that returns a value. def current_time(): from datetime import datetime date_time = datetime.now() return date_time # Use the function. current_time = current_time() print(current_time)