STEP 7: The second step in Pig Latin is to add the first letter to the end of the word.

We'll use the.append() command. The list name goes in front of the command and the list item to remove is the parameter. If we passed "hello" to the function, letters would now store the value: ['e', 'l', 'l', 'o','h'].

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

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)