第 5 步:让我们的精灵对海滩说点什么!

只有在测试语句为真时才应该运行的任何命令必须在 if 块内缩进 4 个空格。

  • 并拖出Say 。将其缩进 if 语句下。
  • .say()中的字符串更改为"I love going to the beach!"

  • 点击运行并在询问气泡中输入beach以检查您的工作。

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)