Getting started:

  1. Open a new tab and go to This will let you write, run, debug and share python code in your browser.
  2. Type in the following code:
    from microbit import *
  3. You can run the code by pressing Ctrl + Enter or by tapping on the green play button that appears in the bottom left when you click on the {+} symbol.
microbit python simulator

microbit python simulator

Your code doesn’t make the micro:bit actually do anything yet. It just tells python to load the code module that lets it control the micro:bit.