第4步:让我们做些数学!

在Python中,使用星号*进行乘法运算。 我们也可以将两个整数变量乘起来。

  • rectangle_area 的值更改为 rectangle_width * rectangle_height
  • 注意:就像在数学课上学到的,这和 area = width x 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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)