STEP 5: In order to change the letters in the string, we'll need to cast our string to a list of individual elements.
- From , drop Convert String to List indented inside the pig_latin() function block .
- Change the variable name of the list to letters and the argument in list() from my_var to word.
- From drop Print Variable inside pig_latin() and change my_var to letters.
- Open the console. We've printed a list of the letters of the word we passed to the function: ['h', 'e', 'l', 'l', 'o' ]
To navigate the page using the TAB key, first press ESC to exit the code editor.