We can define functions in Python. Functions are defined globally, within the file/module as they begin in column 0 (the left-most position on a line, with no indentation).
A function is a block that defines a series of lines we want to execute when the function is called. We can pass zero or more arguments (variables) to the function.
main.pytry:
# we call or execute the function here display_message('hello world.')
except Exception as e: print('an error occurred: {}'.format(e)) finally: print('complete.')