Overview

In an early Beta version of the micro:bit Python Editor V3, we introduced a new feature called autocomplete. Beta testers helped us ensure that the autocomplete feature is now fully utilised in the released version 3 of the micro:bit Python Editor. Autocomplete allows users to see the different functions within a module, giving a clearer understanding of the available features and supporting the creation of functional programmes. 


Python Editor V3

For more information on how to use the autocomplete feature in the micro:bit Python Editor, see https://microbit.org/get-started/user-guide/python-editor/, section 5.


Remember, autocomplete doesn’t recognise your import statements, so it's a good idea to double-check your code for accuracy before transferring it to your device.

For example, typing:

 import microbit


 This indicates that you should then use the following:

microbit.display.scroll


 Whereas typing:

from microbit import display

Or typing:

from microbit import *

Allows you to write:

 display.scroll


The sample code provided in the micro:bit Python Editor uses 'from microbit import *' as default.


You can learn more about what this means by reading about the difference between 'import microbit' and 'from microbit import *'.