第14步:让三角形像矩形一样说出完整的语句!

将再次组合字符串和整数。 可以使用 my_rectangle .say() 指令作为指导。

  • 将三角形的 .say() 指令中字符串更改为 "My area is "
  • 在字符串之后,使用加号+来添加 str(triangle_area)。

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)