STEP 14: We can't see that the message was encrypted unless we output it! Let's show it on the stage.

  • Go to the GRAPHICS tab and toolkit. Drag Text to the bottom of the program. Don't indent!
  • Replace the string "Hello." with encrypted_message. Make sure the variables isn't surrounded by quotes!
  • Click Run and enter a message and a key!
  • Try entering "hello codester!" as the message and 7 as the key. Click Submit and Next when ready.

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)