I would like to sort a list of tuples, and get the 3 tuples with the biggest values. The tuples are made like this : ('String', int)
Sample I/O:
Input:
wins_list = [("jim", 11), ("pam", 9), ("dwight", 12), ("oscar", 2), ("micheal", 17), ("angela", 3), ("kevin", 1)]
Expected Output:
["micheal", "dwight", "jim"]
Input:
wins_list = [("jim", 1), ("pam", 4), ("jan", 10), ("creed", 7), ("micheal", 5), ("meredith", 2), ("phyllis", 28)]
Expected Output:
["phyllis", "jan", "creed"]