Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

create a function named processFiles that takes a list of strings named listOfFileNames as a parameter. Your function should print the total number...

create a function named processFiles that takes a list of strings namedlistOfFileNames as a parameter. Your function should print the total number of words in all of the files in listOfFileNames. Use the following function header

def processFiles(listOfFileNames):

For example, given

listOfFileNames = ['input1.txt','input2.txt','input3.txt'] with the above files containing the following information:

input1.txt contains: The quick

input2.txt contains: brown fox

input3.txt contains: jumped over

Your function should print 9

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question