Automate the Boring Stuff with Python Workbook

Projects and Exercises to Sharpen Your Python Skills

Paperback
$39.99 US
8"W x 10"H
On sale Nov 04, 2025 | 256 Pages | 9781718504509
Grades 9-12 + AP/IB

See Additional Formats
You've seen what Python can do. Now go deeper.

This workbook transforms Al Sweigart’s best-selling guide from a reading experience into a coding experience. Following Automate the Boring Stuff with Python chapter by chapter, this workbook will help you turn concepts into muscle memory through carefully designed exercises, projects, and real Python scripts.

Every concept from Automate is reinforced through carefully sequenced questions, exercises, and projects that help you think like a programmer and prove to yourself that you really get it.

At the end of each chapter, you’ll tackle miniprojects that bring everything together. Whether you’re renaming files, scraping websites, converting text to speech, modifying spreadsheets, or sending emails, you’ll build scripts that do real work. Fun projects like image generators and word games are in the mix too, not just boring stuff.

Every question and project come with a solution at the back of the book, so you’re never stuck.

Inside, you’ll find:

  • Fill-in-the-blank and short-answer questions that reinforce key concepts
  • Targeted exercises to build fluency with variables, loops, functions, regular expressions, and more
  • Real Python scripts to run, tweak, and debug
  • Projects that automate common tasks like organizing files, backing up data, and scheduling programs
  • Full working code for every project so you can check your work and learn by example

With over 500,000 copies sold worldwide, Automate the Boring Stuff with Python has become the go-to guide for learning Python. This workbook gives you the structure, feedback, and smart reinforcement to go from reading code to writing it with confidence.
Al Sweigart is a software developer, fellow of the Python Software Foundation, and author of several popular programming books including Automate the Boring Stuff with Python, The Big Book of Small Python Projects, Beyond the Basic Stuff with Python, Coding with Minecraft, and The Recursive Book of Recursion (all from No Starch Press).
Acknowledgments
Introduction
Chapter 1: Python Basics
Chapter 2: if-else and Flow Control
Chapter 3: Loops
Chapter 4: Functions
Chapter 5: Debugging
Chapter 6: Lists
Chapter 7: Dictionaries and Structuring Data
Chapter 8: Strings and Text Editing
Chapter 9: Text Pattern Matching With Regular Expressions
Chapter 10: Reading and Writing Files
Chapter 11: Organizing Files
Chapter 12: Designing and Deploying Command Line Programs
Chapter 13: Web Scraping
Chapter 14: Working with Excel Spreadsheets
Chapter 15: Working with Google Sheets
Chapter 16: SQLite Databases
Chapter 17: PDF and Word Documents
Chapter 18: CSV, JSON, and XML Files
Chapter 19: Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 20: Sending Email, Texts, and Push Notifications
Chapter 21: Making Graphs and Manipulating Images
Chapter 22: Recognizing Text in Images
Chapter 22: Controlling Keyboard and Mouse
Chapter 24: Text-To-Speech and Speech Recognition Engines
Answers
Automate the Boring Stuff with Python Workbook pages 18-19
Automate the Boring Stuff with Python Workbook pages 50-51
Automate the Boring Stuff with Python Workbook pages 68-69
Automate the Boring Stuff with Python Workbook pages 166-167
Automate the Boring Stuff with Python Workbook pages 172-173

About

You've seen what Python can do. Now go deeper.

This workbook transforms Al Sweigart’s best-selling guide from a reading experience into a coding experience. Following Automate the Boring Stuff with Python chapter by chapter, this workbook will help you turn concepts into muscle memory through carefully designed exercises, projects, and real Python scripts.

Every concept from Automate is reinforced through carefully sequenced questions, exercises, and projects that help you think like a programmer and prove to yourself that you really get it.

At the end of each chapter, you’ll tackle miniprojects that bring everything together. Whether you’re renaming files, scraping websites, converting text to speech, modifying spreadsheets, or sending emails, you’ll build scripts that do real work. Fun projects like image generators and word games are in the mix too, not just boring stuff.

Every question and project come with a solution at the back of the book, so you’re never stuck.

Inside, you’ll find:

  • Fill-in-the-blank and short-answer questions that reinforce key concepts
  • Targeted exercises to build fluency with variables, loops, functions, regular expressions, and more
  • Real Python scripts to run, tweak, and debug
  • Projects that automate common tasks like organizing files, backing up data, and scheduling programs
  • Full working code for every project so you can check your work and learn by example

With over 500,000 copies sold worldwide, Automate the Boring Stuff with Python has become the go-to guide for learning Python. This workbook gives you the structure, feedback, and smart reinforcement to go from reading code to writing it with confidence.

Author

Al Sweigart is a software developer, fellow of the Python Software Foundation, and author of several popular programming books including Automate the Boring Stuff with Python, The Big Book of Small Python Projects, Beyond the Basic Stuff with Python, Coding with Minecraft, and The Recursive Book of Recursion (all from No Starch Press).

Table of Contents

Acknowledgments
Introduction
Chapter 1: Python Basics
Chapter 2: if-else and Flow Control
Chapter 3: Loops
Chapter 4: Functions
Chapter 5: Debugging
Chapter 6: Lists
Chapter 7: Dictionaries and Structuring Data
Chapter 8: Strings and Text Editing
Chapter 9: Text Pattern Matching With Regular Expressions
Chapter 10: Reading and Writing Files
Chapter 11: Organizing Files
Chapter 12: Designing and Deploying Command Line Programs
Chapter 13: Web Scraping
Chapter 14: Working with Excel Spreadsheets
Chapter 15: Working with Google Sheets
Chapter 16: SQLite Databases
Chapter 17: PDF and Word Documents
Chapter 18: CSV, JSON, and XML Files
Chapter 19: Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 20: Sending Email, Texts, and Push Notifications
Chapter 21: Making Graphs and Manipulating Images
Chapter 22: Recognizing Text in Images
Chapter 22: Controlling Keyboard and Mouse
Chapter 24: Text-To-Speech and Speech Recognition Engines
Answers

Photos

Automate the Boring Stuff with Python Workbook pages 18-19
Automate the Boring Stuff with Python Workbook pages 50-51
Automate the Boring Stuff with Python Workbook pages 68-69
Automate the Boring Stuff with Python Workbook pages 166-167
Automate the Boring Stuff with Python Workbook pages 172-173

Get Inspired! Books for After-School Clubs & Activities

Coordinating after-school clubs and activities in your school community? Explore our collection of books that will help students discover their passion for new (and screen-free!) hobbies. Focusing on topics such as art, board games, crafting, cooking, nature, sports, and more—these books are bound to spark imagination and movement. Browse the middle school and high school

Read more