STEP 7: Our loop runs, but no changes show on the stage! We'll need to add a couple of lines of code to fix that!

  • Click on . Drag out Update Display and drop it INSIDE the loop.
  • Change the name in front to total_display.
  • Change the variable argument to total.

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)