第 8 步:我们的比萨配橄榄味道会更好!

将值添加到列表中的另一种方法是使用.append()命令。

  • 并拖出Append
  • .append()前面的名称从my_list更改为pizza
  • .append()中的参数从my_var更改为字符串"olives"

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)