STEP 11: It's your lucky day! Your teacher will drop your two lowest grades. Let's write a function to do exactly that!

  • Go to . Drag Define Function with Parameter below and outside print_average().
  • Rename the function to remove_lowest_two() and change the parameter to list_of_grades.
  • Drag in Docstring and edit it to describe what this function will do (It will remove the lowest two grades.)
  • Drag Function Call with Parameter into the bottom of main. Change it to remove_lowest_two(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)