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

RULE: All list-index pairs must point to an item in a list. If an 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 indexes range from 0 to 3.
  • Debug the program so that the sprite orders food using an index that is within the 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)