This Python script analyzes a text file (book) and reports the following:
Total word count Character counts (occurrences) for each alphabetical character, sorted alphabetically
The script will print a report with:
A header indicating the analyzed book path. The total word count. A section detailing each alphabetical character and its corresponding count, ordered alphabetically. A closing footer. Example Output:
******** Begin report of book in path: books/frankestein.txt ******** the book has 64394 words
the a character was found 97240 times the b character was found 14198 times ... the z character was found 104 times ******** End report ********