STEP 4: Let's call our function that we just made. It doesn't do anything yet, but we'll change that!

  • From , drag Call Parameters Into Variable to the bottom of the program. No indenting!
  • Change my_var to encrypted_message and change my_function to encrypt.
  • Change my_parameter1 to message and change my_parameter2 to key.

When the function is completed, it will store our secret message in the encrypted_message variable!

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)