Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Dict comprehension - one line solution in Clear category for Popular Words by bostonz1
def popular_words(text, words):
return {i:text.lower().split().count(i) for i in words}
June 10, 2020
Comments: