STEP 10: Let's use the variables in the triangle's arguments.

Remember, we want to use the variable names, not their values.

  • Replace the width argument of 2 in my_triangle with the variable triangle_width.
  • Replace the height argument of 3 in my_triangle with the variable triangle_height.

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)