!!! Functions

This is __Exercise 2__ of the [Micro Python Tutorial].

We can define __functions__ in Python. Functions are defined globally, within the file/module as they begin in column 0.

%%python

def display_message(message):
    print(message)
    raise Exception('we did something wrong.')

try:
    display_message('hello world.')
except Exception as e:
    print('an error occurred: {}'.format(e))
finally:
    print('complete.')
%%