15 步:如果我们列表中的值为3 ,那么该正方形就是目标,我们应该将其颜色设置为绿色。

  • 在逻辑和,将elif elif 。它应该缩进十二个空格
  • choice更改为column并将"no"更改为3
  • 在图形和, 将Set Color缩进16 个空格拖到 if 语句中。
  • 好的!现在只需将括号内的字符串从"red"更改为"green"

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)