# -*- coding: utf-8 -*- import collections def top_word(word_list): counts = collections.Counter( word_list ) return counts.most_common(10)