descending order list python code example
Example 1: how to sort a list descending python
# defning A as a list
A.sort(reverse = True)
Example 2: sort a list of ints python in descending order
print sorted(ListB, reverse=True)
# defning A as a list
A.sort(reverse = True)
print sorted(ListB, reverse=True)