STEP 3: Now we'll set up the variable to store our scrambled word!

  • Rename the string variable indented in pig_latin() from my_var to code_word.
  • Delete the words inside the quotes to create an empty string. It should look like this: "".

Remember, an empty string acts as a placeholder that we can add a value to later. We are setting up code_word so that we will be able to update its value later.

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)