STEP 16: Now that we have access to our timer variable, we should update the time while there are still dragons.

  • In LOGIC, go to , and drag in Add Value indented INSIDE your first if statement.
  • Change the variable name before += from my_var to timer.
  • Let's update our display. Drag in Update Display underneath your first if statement.
  • Change my_display to timer_display. Change the variable in .update() from my_var to timer.

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)