Oct-29-2018, 08:58 PM
I need to write a Python program that iterates through all the data files in a folder and calculates the total number of occurrences of a given name. For example, the user would input a name, Bob, and the program has to open the folder that contains 100+ text files that contain a list of names and count every occurrence of the name 'Bob' and print the final result.
How do you work with folders in Python (I'm on a Mac)?
How do you work with folders in Python (I'm on a Mac)?