STEP 13: Usually we sort high scores from greatest to least. How do we know if our list is sorted correctly?

  • In , drag Function Call with Parameter to the bottom of main().
  • Change my_function to sort_by_score. (We made this function for you already.)
  • Then, change the parameter inside the parentheses from my_var to data.
  • Finally, in , drag Print Variable to the bottom of main() and change my_var to data.

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)