STEP 3: Let's have the micro:bit display the current temperature!

Parameters are inputs that control how a command, function, or event runs in your program.

  • In , find Show Number and drag it into the code editor.
  • Change the parameter inside the parentheses of the .show_number() from 1 to data.
  • Click Run. You should see the number appear after "hello." Then, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

microbit = codesters.Microbit() microbit.show_string("hello") data = microbit.get_temp()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)