STEP 4: Let's call the function so that we see it run each time we make a change to it.

  • From drop Function Call with Parameter unindented at the bottom of your code.
  • Change the function name from my_function() to pig_latin().
  • Change the variable argument my_var in the function call to the string "Hello".

We have now called the pig_latin() function and passed the string "Hello" to 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)