This lesson's interactive features are locked, please to keep using them
This is probably your first Python project, and almost certainly your first one on Boot.dev. Nice.
We're building BookBot, a Python program that analyzes novels and prints a report on their word and character usage. You will:
While you're learning, we recommend not using inline AI tab completion in your code editor.
Here's what you'll build (you might want to go fullscreen):
Click to play video
Our automated tests run in Linux and macOS environments. On Windows, run the Boot.dev CLI inside WSL 2, not a plain Windows terminal.
You'll use the Boot.dev CLI throughout this course to run lesson commands and tests against the files on your machine.
Lessons include commands that run on your machine and tests that check the results. The CLI has two modes for running them: 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 each command, complete with the lesson ID, from the test panel.
bootdev --version
bootdev login
If you're stuck, ask for help in the Boot.dev Discord.
Submit the lesson from the test panel. There's no penalty on failure for this lesson.