Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
count with loop solution in Uncategorized category for Popular Words by lxf42
def popular_words(text: str, words: list) -> dict:
counts = {w:0 for w in words}
for word in text.lower().split():
if word in counts:
counts[word] += 1
return counts
Feb. 19, 2022
Comments: