STEP 13: We need to return the encrypted message from our function. Then we can output it!

  • From , drag in Return Statement indented once at the bottom of the function.
  • Change my_var to new_message. This will return the encrypted message stored in new_message!

We need to return new_message so that we can use its value outside the function. In the next activity we will output it so that we can see the encryption!

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)