警告:这个程序有一个错误,这意味着我们需要修复它!

规则:当我们编写 if 语句时,测试行必须有一个冒号 : 在行尾。

  • 点击运行并阅读错误消息。
  • 在第二个 if 语句的末尾放置一个冒号,如下所示: if choice == "hedgehog" :
  • 调试此程序,以便正确测试"hedgehog"

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)