STEP 10: Once we've collected a data point, we need to store it in our list.

  • In LOGIC, go to and drag Append into the interval event.
  • Change the list name in front of the .append() command from my_list to data_list.
  • Change the parameter of the .append() command from my_var to data.
  • Click Run. Then click Submit and Next to move on.

microbit = codesters.Microbit() microbit.show_string("hello") data = microbit.get_temp() microbit.show_number(data) data_list = [] time_list = [] my_display = codesters.ScatterPlot(time_list, data_list) time = 0 def interval(): data = microbit.get_temp() stage.event_interval(interval, 2)