STEP 13: Now we'll have the triangle say its area, just like we did for the rectangle.

  • Select the GRAPHICS tab and then . Drag Say into the bottom of your program.
  • Change the name in front of the .say() command to my_triangle, because otherwise we'll get an error.

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)