15 步:如果每个letter都已添加到revealed_letters字母中,则循环完成,玩家无需猜测!

  • 转到逻辑和. iffor循环内部和底部缩进,则删除。
  • 测试变量choice更改为revealed_letters ,将测试值"yes"更改为password
  • 转到图形和Actions 。拖出Say并将其缩进到 if 块中。
  • .say()中的字符串更改为"You're out of guesses!"

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)