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.