STEP 8: Now we need to use an index to get an image label for our character's head!

  • Go to and drag another Get Value at Index to the bottom of your program.
  • Change the variable name from my_var to head_image.
  • Change the list name from my_list to head_list.
  • Change the index in brackets from 0 to random_head. The index is now a random number from 0 to 5!

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)