Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Popular Words by Raszlo
def popular_words(text: str, words: list) -> dict:
TEXT = text.lower().split()
result = {}
for word in words:
result[word] = TEXT.count(word)
return result
April 6, 2020