VISTA PREVIA: ¡Veamos un ejemplo del programa que crearás hoy!

  • Hacer clic Corre para ver el ejemplo. ¡Mira el gráfico por un minuto y mira lo que sucede!
  • Después de haber echado un vistazo al código, haga clic en Enviar y Siguiente para seguir adelante.

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

microbit = codesters.Microbit() time_list = [] data_list = [] my_display = codesters.ScatterPlot(time_list, data_list) time = 0 def interval(): global time data = microbit.get_temp() data_list.append(data) time_list.append(time) my_display.update(time_list, data_list) time += 1 my_display.set_title("Time vs. Temperature") stage.event_interval(interval, 1)
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)