Infinite loop not checking for string size and belonging to alphabet

I’ve been trying to make a check for if the input (guesses) belongs to the alphabet and if it’s a single character for my simple hangman game, but when I try to run the program it just ignores the entire if sentence. It’s been working everywhere else and I just can’t find the source of… Read More Infinite loop not checking for string size and belonging to alphabet

How to sort a list by number first in descending order and then by alphabet in ascending order

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 any element have same number then it get sorted by alphabet in ascending order, like this ff = [(‘g’,… Read More How to sort a list by number first in descending order and then by alphabet in ascending order