When sorting a list with the sort() method, using the _______ argument can allow for custom sorting behaviors.

  • custom
  • custom_sort
  • key
  • sort_by
When sorting a list using the sort() method, you can provide a key argument to specify a custom sorting behavior. This allows you to sort based on specific criteria or functions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *