First: for-loop over words solution in Speedy category for Popular Words by leggewie
# straight-forward solution with for-loop over "words"
def popular_words(text: str, words: list) -> dict:
for word in words:
May 26, 2021