STEP 12: Now we can ask the user to choose the index for getting the background image from our list.

  • Go to and drag Ask for Integer to the bottom of your program.
  • Change the variable name to stage_index.
  • Change the text string in .ask() to "Choose an index between 0 and 5."
  • Change the name in front of .ask() to head.

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)