WSQ12 – Word Count

Instruction:

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:

WSQ12

 

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.