STEP 5: The list has 6 values with indexes of 0 through 5. Let's change the index we are accessing.

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

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

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)