How to sort a list by number first in descending order and then by alphabet in ascending order
How to sort a list by number first in descending order and then by alphabet in ascending order Question: I have a list ff = [(‘o’, 2), (‘l’, 1), (‘e’, 1), (‘g’, 2)] and i want to sort it in such a way in which it get sorted by number in descending order and if …