Hi,
I think there is a typo in the python course: Strings and Dictionaries - exercise 3:
The proposed solution is not working:
def multi_word_search(documents, keywords):
keyword_to_indices = {}
for keyword in keywords:
keyword_to_indices[keyword] = word_search(documents, keyword)
return keyword_to_indices
'documents' should be 'doc_list'
Unfortunately I don't have the permission to create a new topic on Kaggle....