14 步:让我们的三角形说出一个完整的句子,就像我们对矩形所做的那样!

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

  • 将三角形的.say()命令中的字符串从"I am a sprite.""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)