STEP 4: Let's do some Python Math!

In Python, we use an asterisk * for multiplication. We can also multiply two integer variables together.

  • Change the value of rectangle_area to equal rectangle_width * rectangle_height.
  • Notice: this is exactly the same as saying area = width x height, like you would in math class.

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)