第 13 步:现在让我们添加 elif 语句!确保它位于程序的底部并且没有缩进!

  • 点击逻辑,然后拖出一个elif工具。将其放在程序的底部。
  • 测试变量更改为choice2并将测试值更改为"farm"
  • 转到图形和.将Corn Field放到 elif 语句中。确保它是缩进的!
  • 在 elif 语句中放置一个Say工具, .say()中的字符串更改为"At the farm!"

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)