警告:这个程序有错误!我们正在尝试将彩虹列表中的"black"更改为"blue" 。让我们调试它!

规则: .index()返回列表中的索引(位置)

  • 点击运行并阅读错误消息。
  • 更改.index()括号中的值以获得颜色"black"的索引。
  • 点击运行以查看您是否修复了该程序。固定好后点击提交接下来

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)