Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Clear one-line solution solution in Clear category for Popular Words by bsquare
import re
def popular_words(text, words):
return {word: len(re.findall(r"\b" + word + r"\b", text.lower())) for word in words}
Sept. 18, 2019
Comments: