Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Re solution in Clear category for Popular Words by CedricVaruna
import re
def popular_words(text: str, words: list) -> dict:
return {w:re.split(r'[ \n]+', text.lower()).count(w) for w in words}
Nov. 24, 2022
Comments: