Let’s check out some exercises that will help understand Python’s .sort() method better.
Sort the list in ascending order with .sort() method.
This time sort the countries in alphabetic order.
Now sort the list in descending order with .sort() method.
Can you sort the gift list in reverse alphabetic order?
Sort the list below in reverse alphabetic order and then assign the last element to the answer_1 variable.
Sort the cities from z to a.
Sort the keys of the dictionary from a to z.
Hint: You might want to create a list of the keys first with the help of a dictionary method.