if tf_idf > topWords[iWord]:
    topWords[iWord] = tf_idf
for i, item in enumerate(sorted(list(topWords.items()), key=lambda x: x[1],
    reverse=True), 1):
    print('%2s: %-13s %s' % (i, dictionary[item[0]], item[1]))
if i == 6:
    break
Interpreting the sum of TF-IDF scores of words across documents