STEP 4: We will need to keep track of which letters have been revealed by the dragon on each turn.

We'll create an empty variable as a placeholder to store a value that will change as our program runs.

  • Go to and drag out another String Variable. Drop it at the bottom of your program.
  • Name the variable revealed_letters.
  • Change the value to empty quotes like this "".

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)