Light Mode
Dark Mode
popular-word resolution pass for pass

def popular_words(text: str, words: list) -> dict: # your code here text = text.lower().replace('\n', ' ').split(' ')

palabras = {}
for w in words:
    if w in text:
        palabras[w] = (text.count(w))
    else:
        palabras[w] = (text.count(w))

return palabras
Created: Dec. 23, 2019, 9:02 p.m.
Updated: Dec. 24, 2019, 1:26 p.m.
0
6
User avatar
anbreaker