You are already familiar with how to program with the Python programming language, the rules for writing commands and the basic features of the language. A new thing in relation to the previous Python program is the application of the management functions of the micro:bit device, which are defined in the library provided for them.
The functions we need are defined in the library of the device micro:bit and through the following examples we will learn how to load and apply them in our code, and then how to load the code in the device micro:bit and check the results of our tasks.