I'm getting a list of lists in my reducer output rather than a paired value and I am unsure of what to change in my code

The code below is giving me nearly the output i want but not quite. def reducer(self, year, words): x = Counter(words) most_common = x.most_common(3) sorted(x, key=x.get, reverse=True) yield (year, most_common) This is giving me output "2020" [["coronavirus",4],["economy",2],["china",2]] What I would like it to give me is "2020" "coronavirus china economy" If someone could explain to… Read More I'm getting a list of lists in my reducer output rather than a paired value and I am unsure of what to change in my code