WARNING: This program has a logic error! It doesn't create an error message, but it's not doing what it should.

RULE: del deletes a range of indexes using a colon, like this: del my_list[start_index:end_index]

  • Click Run and read the output in the console. One item doesn't belong in this list!
  • Fix the program by changing the range of indexes in del to remove only 54 from the list.
  • Click Run to see if you fixed the program. When it is fixed, click Submit and Next.

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)