Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

What method is used in Python to sort items in a list in ascending order? Also, if you want to access the last item in a list, which index would you use?

Click the option that best answers the question.

  • `sort()` method and use index `-1`
  • `order()` method and use index `1`
  • `sort()` method and use index `0`
  • `arrange()` method and use index `-1`