I have a function:
def most_common(dictionary, integer):
'Integer' must be a positive number. This function must update the list to include the 'Integer' most common words in the dictionary.
For example
>>> def most_common({'ONE': 1, 'TWO': 2, 'THREE': 3}, 2)
>>> {'TWO' : 2, 'THREE' : 3}
The only code I have written for this function so far is to sort the dictionary.