!!! main.py %%info This is __Exercise 1__ of the [Micro Python Tutorial]. %% The file (also sometimes called a "script") named {{main.py}} is special in MicroPython, in the sense that when you power-on the device and/or press the reset button, the contents of the {{main.py}} file are passed to the MicroPython interpreter and the program contained within main.py is executed. It's the ''entry point'' for running any application in Python. %%filename main.py %% %%python \\# this is a comment print('hello world.') print("hello again.") # you can use single or double quotes %% __See also:__ [The REPL|MicroPythonTutorialTheREPL] ---- __Previous:__ [MicroPython Tutorial|MicroPythonTutorial]: home page \\ __Next:__ [MicroPython Tutorial Exercise 2|MicroPythonTutorialExercise02]: functions