Reusing list utilities without changing the original

A sports application must display scores from highest to lowest while preserving the original list, including its order and any repeated scores. An existing library provides these functions:

  • copy_scores(scores) returns a separate list containing the same numeric scores in the same order.
  • sort_scores(scores) changes the supplied list into ascending order and returns None.
  • reverse_scores(scores) reverses the supplied list and returns None.

Complete the reuse plan with the appropriate function names, without parentheses.


First, call on the original list and assign its returned list to working. Next, call sort_scores(working) without assigning its return value. Finally, call on working, again without assigning its return value, and display working.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Code Reuse Questions: