STEP 7: We want the rectangle to use rectangle_area so that it always says the correct area.

We still need to use str() because rectangle_area is an integer variable, so we can't just add it to the string.

  • In the .say() command, change 8 to rectangle_area, inside str().
  • There should be two )) at the end of your say command. One for str() and the other for the .say().


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)