$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #262

What goes in both blanks?

from collections import ____
freq = ____(text)
print(freq.most_common(3))

Answer: Counter (also accepted: Counter, counter)

Counter tallies occurrences and most_common returns the top entries.
Play Problem Solving ▸