第 2 步:让我们做一些 Python 数学运算来计算矩形的面积!

在 Python 中,我们使用星号*进行乘法运算。

请记住,整数是任何整数。

  • rect_area25更改为等式25 * 50my_rect的宽度和高度!)。
  • 注意:这与说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)