STEP 7: Each list has 6 values with indexes of 0 through 5.

If you change the index to a number above 5, it will cause an error because there aren't enough values in the list.

  • Find the line of code that reads head_image·=·head_list[0]
  • Change the index to 1. Click Run to see the change.
  • Try out the other index numbers and pick the image that you like best.

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)