desc() function in python code example
Example 1: how to sort a list descending python
# defning A as a list
A.sort(reverse = True)
Example 2: .sort python
list.sort([func])
# defning A as a list
A.sort(reverse = True)
list.sort([func])