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.

microbit = codesters.Microbit() microbit.show_string("hello") data = microbit.get_temp()