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