今天我们将使用一个循环和一个列表来创建一个猜词游戏!

  • 点击跑来玩游戏。
  • 进入代码并将secret_word的值更改为 3 个字母的单词。然后尝试一个 4 个字母的单词。
  • 完成后点击提交接下来继续。

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)