STEP 17: You took the final exam of the year and got a 97! Let's put this grade into the correct order in our list.

  • First we need to sort our list again because we just changed a grade.
  • From , drag Sort List to the bottom of main. Change my_list to grades.
  • From , drag in Function Call. Change it to print_grades and add grades as a parameter. Click Run to see all the grades in order. What index should a grade of 97 be in?

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)