Python Code to Count Word Occurrences in a Text File

Prompt

Result