Getting help for built-in modules
We can get help for the built-in modules with the following command in the REPL shell:
>>> help('modules')
This shows the list of all the available modules as follows:
Figure 4.1 – Built-in modules
Note that the output is interpreter-specific. The preceding screenshot (Figure 4.1) shows the output specific to the MicroPython interpreter implemented for the Micro:bit. If we run the same statement on any other interpreter of Python (for example, CPython, the reference implementation interpreter of Python by the Python Software Foundation), we will see a different list.
We can mention the name of any built-in module as an argument to the help()
method to see the details of the module as follows:
Figure 4.2 – Obtaining help
All the code we have practiced before now in this chapter and the previous one can be executed with the standard reference implementation of...