Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Popular Words by dzhamal.bakriev
def popular_words(text: str, words: list) -> dict:
answer = {}
text = text.lower().split()
for i in words:
answer[i] = text.count(i)
return answer
June 13, 2020