Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

What are the differences between small and large stock dividends?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago