STEP 2: Let's set up our function! We won't see it run just yet. Remember, we have to call functions to see them run.

  • Go to and drag Define Function with Parameters into your program.
  • Change the name of the function to pig_latin.
  • Change the first parameter to word and delete the second parameter.
  • Go to and drag String Variable INSIDE the 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)