STEP 11: Our area_display is not updating to display our new area! We need to fix that.

  • In the LOGIC tab, click on and drop Update Display inside the move_mouse block.
  • Change the variable name before .update() from my_display to rect_display.
  • Change the variable argument in parentheses from my_var to rect_area.

Click Run and notice how the area display updates as you move your mouse!

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)