We have a list that we can select random words from. Now we need to get the random word.

  • Go to . Drag out Get Value at Index and drop it at the bottom of your program.
  • Change my_var to draw_word.
  • Change my_list to words.
  • Replace the integer with rand_index. This will get the value that is randomly selected.

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)