STEP 5: Next, we need to cast hidden_string into a list so that we can update it as letters are guessed!

  • Drag out Convert String to List. Change my_list to hidden_list and change my_var to hidden_string.
  • Add Variable Display to the next line. Change the display name to hidden_display.
  • Set the arguments in .Display() to (hidden_list, 0, 150).
  • Click Run and enter a word. Notice that a list of #s appear that is the same length as your word!

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)