Skip to content

Latest commit

 

History

History

3.bookbot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Introduction

This project is a simple stastics generator for a book in text format.

How to use

  1. Download the sample book wget https://raw.githubusercontent.com/asweigart/codebreaker/master/frankenstein.txt -O books/frankenstein.txt
  2. Run the program python main.py

Sample output

--- Begin report of books/frankenstein.txt ---
77986 words found in the document.

The 'a' character was found 26743 times
The 'b' character was found 5026 times
The 'c' character was found 9243 times
The 'd' character was found 16863 times
The 'e' character was found 46043 times
The 'f' character was found 8731 times
The 'g' character was found 5974 times
The 'h' character was found 19725 times
The 'i' character was found 24613 times
The 'j' character was found 504 times
The 'k' character was found 1755 times
The 'l' character was found 12739 times
The 'm' character was found 10604 times
The 'n' character was found 24367 times
The 'o' character was found 25225 times
The 'p' character was found 6121 times
The 'q' character was found 324 times
The 'r' character was found 20818 times
The 's' character was found 21155 times
The 't' character was found 30365 times
The 'u' character was found 10407 times
The 'v' character was found 3833 times
The 'w' character was found 7638 times
The 'x' character was found 677 times
The 'y' character was found 7914 times
The 'z' character was found 243 times
--- End report ---