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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started