def print_wordfreq(freqs, n=<NUM_LIT:10>):
words, counts = freqs.keys(), freqs.values()<EOL>items = zip(counts, words)<EOL>items.sort(reverse=True)<EOL>for (count, word) in items[:n]:<EOL><INDENT>print(word, count)<EOL><DEDENT>
Print the n most common words and counts in the freqs dict.