"Book Bot" - a Python program that can analyze an entire book (or any other .txt document) and print out an interesting statistical report.
Clone the repo:
git clone git@github.com:mierdev/bookbot.gitRun the program:
python3 main.py <path_to_book>This project is part of the Boot.dev curriculum. Their projects are designed to actually train you like a Junior Developer, by writing a ton of code and giving you challenges to solve on your own (you are given a few hints, but the rest is on you and Google).
- Use type hints.
- Use pure functions.
- Added a function to count individual words and put them in a dictionary.
- Added a function that adds the top 10 most used words to a list.
- Use the
.get()method to add characters to a dictionary in thecharacter_countfunction. - Use the
.items()method and alambdafunction to sort the characters on value (descending). - Check if the document at the user defined path exists.
- Changed
main.pyto only set variables and execute functions. This was done by adding two more scripts and moving functions out ofmain.py:get_and_check_data.py- checks if a user gave a path to a document.
- retrieves text from the document.
report.py- prints an analysis report to the terminal.
- Configure a professional Python development environment on your local computer.
- Deploy a Python project on your personal GitHub account.
- Learn how to use a professional code editor (VS Code).
- Put your Python and Git skills to the test in a real project.
- Refactoring and cleaning up your code.