STEP 8: The third step in Pig Latin is to add "ay" to the end of the word.

  • From , drag another Append INSIDE the function.
  • Use the .append() command to add the string "ay" to the end of the letters list.

If we passed "hello" to the function, letters would now store the value: ['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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)