Enabling Python Features in Microbit MakeCode

Enabling Python Features in Microbit MakeCode

In the latest update of Microbit MakeCode, the Python feature has been enabled. This means that when using MakeCode, we can also use Python programming just like in the Maker version of MakeCode, making MakeCode a versatile programming platform.

First, open the beta version of MakeCode in your browser (the Python feature is currently in testing, and the official version has not yet pushed this feature).

Enabling Python Features in Microbit MakeCode

Then click the dropdown arrow next to JavaScript to switch to Python programming mode.

Enabling Python Features in Microbit MakeCode

Functions in graphical programming can be automatically converted to the corresponding Python code.

Enabling Python Features in Microbit MakeCode

If no code is modified in Python mode, the program can switch back to graphical programming mode. However, if the Python code has been modified, some functions may display in the form below, indicating that these functions cannot be converted to graphical blocks. Nevertheless, this does not affect the program’s execution, and if you switch back to Python programming mode, these codes will still display correctly. We hope this issue can be resolved in the future (this problem sometimes also occurs in JavaScript programming).

Enabling Python Features in Microbit MakeCode

It is important to note that this Python is not the standard Python on PC, nor is it MicroPython, but rather Microsoft’s own static Python.

Leave a Comment