Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter solution in Clear category for Popular Words by Olpag
from collections import Counter
def popular_words(text: str, words: list) -> dict:
c = Counter(text.lower().split())
return {word: c[word] for word in words}
Feb. 9, 2019