python descending order code example
Example 1: how to sort a list descending python
# defning A as a list
A.sort(reverse = True)
Example 2: python sort list
vowels = ['e', 'a', 'u', 'o', 'i']
vowels.sort()
# defning A as a list
A.sort(reverse = True)
vowels = ['e', 'a', 'u', 'o', 'i']
vowels.sort()