Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Casefolding solution in Clear category for Popular Words by paf
def popular_words(text: str, words: list) -> dict:
popular = {}
for i in words:
popular.update({i:text.casefold().split().count(i)})
return popular
Feb. 23, 2023
Comments: