Question: WANT A PYTHON CODE FOR MY TEXT ANALYSIS (BOOK).. REQUIREMENTS ARE GIVEN. : Processing . Output Must be able to process a text file as
WANT A PYTHON CODE FOR MY TEXT ANALYSIS (BOOK).. REQUIREMENTS ARE GIVEN.
: Processing . Output Must be able to process a text file as input: Must be able to count the: o total # of words o total # of occurrences for each word. o total # of characters in the text document. o total # of blank spaces in the text document. Must be able to calculate the percentage of blank spaces as: o total # of blank spaces divided by total # of characters, multiplied by 100. Must implement exception handling in two areas: when opening the text file for reading and, when writing the output file. Must create an output text file for the chosen text formatted to the client's requirements named "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
