BookBot is my first guided project from Boot.dev!
BookBot is a Python script that analyzes a text file and generates a report on the occurrences of each letter in the text.
- Counts the number of words in the text file.
- Analyzes the occurrences of each letter (case-insensitive) in the text file.
- Generates a report on the letter frequencies.
-
Clone the repository:
git clone https://github.com/AlienAscension/bookbot.git
-
Navigate to the project directory:
cd bookbot
-
Edit the path in the main.py to the document you want to analyse:
file_path = 'books/frankenstein.txt'
-
run the main.py:
python main.py
--- Begin report of books/frankenstein.txt ---
77986 words found in the document
The e character was found 89288 times
The t character was found 61902 times
The a character was found 48991 times
...
--- End report ---