STEP 13: Just like other values, return values need to be stored in a variable!

When we use a return statement, we always store the result of the function call in a return variable.

  • Find the pig_latin("hello") function call line in your code.
  • Add first_word = before the function call so that the line says first_word = pig_latin("hello").
  • The return variable first_word is storing "ellohay", which was returned from 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)