15 步:如果玩家是正确的,我们需要让他们知道并停止询问他们的猜测!

  • 更改中的字符串。对"That's right!" say()
  • 在逻辑中,单击,拖出Break并将其缩进到 if 语句中。

break关键字告诉我们的程序在到达那行代码时停止运行循环。

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)