Question: USING PYTHON 12- write a function named fileStats that takes two strings parameters,1-inFile the name of the input file and 2- outFile the name of

USING PYTHON 12- write a function named fileStats that takes two strings parameters,1-inFile the name of the input file and 2- outFile the name of the output file. The function should read and analyze the contents of an input file and writes the statistics it compiles to the output file. the statistics you should compute about the input file are: the numbers of characters, the numbers of words , the numbers of lines, the numbers of digits and the numbers of punctuaction marks.. Each statistics should be written in a separate line of the output file( hint : the string class contains constants named punctuation and digits).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!