STEP 12: First we need to make sure the list is sorted to find the lowest grades. Then we can remove them!

The del command deletes list items inside a specified range of indexes.

  • Go to and drag Sort List into remove_lowest_two().
  • Change my_list to list_of_grades.
  • Drag Delete Index Range onto the next line. Change my_list to list_of_grades.

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)