WSQ12 – Word Count


Create a program that asks the user for a word which will be your search word and the name of a file to open and search for that word. Then create a function that will receive two parameters (both string) representing those two data points. This function returns the number of occurrences of that word in that file.

Here is a picture of the code:



Here is a link to the code in Github.

Python/WSQ-12 (Word Count)

CC BY-SA 4.0 WSQ12 – Word Count by a01631918 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.