python sort list base on name code example
Example 1: how to sort a list descending python
# defning A as a list
A.sort(reverse = True)
Example 2: python how to sort a list alphabetically
print(sorted(("snow", "glacier", "iceberg")))
# defning A as a list
A.sort(reverse = True)
print(sorted(("snow", "glacier", "iceberg")))