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

Assign .append() by placing the name of the list before .append() and the item to add as the parameter .

  • Go to and drag Append INSIDE the function.
  • Use .append() to add first_letter to the end of the letters list.
  • From use Print Variable to print letters. Notice that it now prints ['e', 'l', 'l', 'o', 'h']!

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)