EXTEND, PART 2: The last step is to call our decryption function and display the output.

  • Copy the function call for encrypt and paste it at the bottom of the program. Change encrypt to decrypt.
  • Change encrypted_message to decrypted_message and change the first argument to encrypted_message.
  • Add a Text to display the result! Replace the string in the parentheses with decrypted_message.
  • Set a position other than (0, 0) for the new text sprite so that it doesn't overlap with the other one.

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)