(Solved) : Write Function Countwords Document Document Name Txt File Contains Multiple Strings Functi Q43969059 . . .
Write the function countWords(document), wheredocument is the name of a txt file that containsmultiple strings. This function returns (notprints) a dictionary whose keys are included words (in lowercase),and values their word counts. You can assume the string doesn’thave any contraction words such as can’t, don’t, isn’t, etc. Thestarter code already contains the code to read the txt file, justmake sure the file is in the same directory as your .py file.
Expert Answer
Answer to Write the function countWords(document), where document is the name of a txt file that contains multiple strings. This …
OR