第8步:Pig Latin的第三步是在单词的末尾添加 "ay"

  • 中,将另一个 Append 拖动到函数内部。
  • 使用 .append() 指令将字符串 "ay" 添加到列表 letters 的末尾。

如果我们将 "hello" 赋予函数,那么现在将会存储值:['e', 'l', 'l', 'o','h','ay']

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)