第11步:所有的秘密字母都显示出来后,我们再添加一个 break来停止程序。

  • 点击 并拖出 if
  • 将测试变量更改为 revealed_length ,将测试值更改为 word_length
  • Say 拖动到 if 区块内部。将字符串更改为 "You took too long!"
  • 点击 ,将 break 拖动到 say 指令下方的 if 区块内部。

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)