!!! 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. %%filename main.py %% %%python \\# we define a function called "display_message" 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.') %% ---- __Previous:__ [MicroPython Tutorial Exercise 1|MicroPythonTutorialExercise01]: main.py \\ __Next:__ [MicroPython Tutorial Exercise 3|MicroPythonTutorialExercise03]: classes