This lesson's interactive features are locked, please to keep using them
This is (perhaps?) your first ever Python project, and almost certainly your first one on Boot.dev. Congratulations!
We're building Book Bot - a Python program that analyzes novels and prints a statistical report of the word and character usage found within. Our learning goals are to:
Here's a quick demo (you might want to fullscreen):
Click to play video
Our automated tests run in Linux/macOS environments. If you're on Windows, run the Boot.dev CLI from WSL2, not a plain Windows terminal.
Throughout this course, you'll be using the Boot.dev CLI to run our tests (which are just CLI commands) against your local environment. Install it now if you don't already have it. All the instructions and troubleshooting info are on the GitHub page.
Make sure the Boot.dev CLI install worked:
bootdev --version
If you're stuck, reach out in the help forums of the Discord.
Once the bootdev command is working, log in and follow the instructions:
bootdev login
Lessons have a series of commands that run on your local machine, and tests that check the results. There are two modes for running commands with the CLI: run and submit.
bootdev run <id>: Runs the commands and shows the results. This is useful for debugging, but it won't tell you explicitly whether you've passed the tests.bootdev run <id> -s: Runs the commands in submit mode and gives you pass/fail feedback. On success, it also marks the lesson as complete on the website.On some lessons, failed submissions can affect your sharpshooter spree. On others, there's no penalty on failure. Read each lesson's instructions carefully and follow the submit flow it asks for.
You can copy the commands with the lesson ID ready to go from the test panel.
Once you have the CLI installed and you're logged in, copy and paste the submit command from the right into your terminal and execute it. There's no penalty on failure for this lesson.