Now we'll have the program make and store a secret code that the user will try to guess.

  • Outside of the loop, use Empty List to create a list called colors. Add 7 colors to the list as values.
  • Use Variable Display to show the list of colors. Position it at the bottom right of the stage.

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)