WARNING: This program has a bug, which means we need to fix it!

RULE: All list-index pairs must point to an element of a list. If an list-index is referenced but does not exist it is "out of range." Click Run and read the error message.

  • In this case we're trying to get the item at index 4 in menu_list, but menu_list's index only goes up to 3.
  • Debug the program so that the sprite orders food using an index that is in range.

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)