We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Welcome to BookBot

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 reports their word and character counts. You will:

  • Set up a local Python development environment on your computer.
  • Build a complete project from scratch.
  • Work in a professional code editor (Zed recommended).

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

Windows Users

Our automated tests run in Linux and macOS environments. On Windows, run the Boot.dev CLI inside WSL 2, not a plain Windows terminal.

Boot.dev CLI

You'll use the Boot.dev CLI to test work on your machine. You'll find each lesson's CLI commands in the test panel. The CLI has two modes:

  • bootdev run <id> runs checks without submitting.
  • bootdev run -s <id> submits your work and marks the lesson complete when it passes.

Starting with your next CLI lesson, you can omit <id> and use bootdev run or bootdev run -s.

Use run first unless the lesson says failed submissions are safe.

Assignment

  1. bootdev --version
    
  2. 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.