19 步:如果用户回答“是”,让我们在顶部添加樱桃。

  • 单击逻辑并转到.将另一个if拖到 elif 语句的底部
  • 确保它缩进两次并将choice更改为cherry
  • 并在 if 语句中拖动Function Call with Parameter ,缩进3 次
  • 将函数重命名为add_cherry()并将参数更改为scoops

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)