STEP 6: We'll use indexes to access the first letter! Remember, indexes start counting at 0.

  • From , drop Get Value at Index INSIDE the function.
  • Change the name of the variable to first_letter.
  • Replace my_list with the list letters. We are getting the first value stored in the letters list!

first_letter is now storing 'h', because we passed "hello" to the pig_latin() function!

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)