Close Modal

Automate the Boring Stuff with Python, 3rd Edition

Paperback
7"W x 9-1/4"H | 13 oz | 24 per carton
On sale May 20, 2025 | 592 Pages | 9781718503403
The bestselling introduction to Python programming, revised to include the latest Python features, improved explanations, and new chapters about databases and sound files.

If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you?

In this fully revised edition of the best-selling classic Automate the Boring Stuff with Python, you’ll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. You'll learn the basics of coding in Python and explore the language’s’s rich library of modules for performing specific tasks, like scraping data from websites, searching for text across multiple files, and merging, watermarking, or encrypting PDFs.

The third edition includes:

  • Expanded coverage of developer techniques, like creating command line programs
  • Updated examples and new projects
  • Additional chapters about working with SQLite databases, speech-recognition technology, video and audio editing, and text-to-speech capabilities
  • Simplified explanations (based on reader feedback) of beginner programming concepts, like loops and conditionals

Even if you've never written a line of code, Automate the Boring Stuff with Python, 3rd Edition will teach you how to make your computer take on tedious tasks and do all your grunt work—the way it should be!
Al Sweigart is a professional software developer who teaches programming to kids and adults. Sweigart has written several bestselling programming books for beginners, including Invent Your Own Computer Games with Python, Cracking Codes with Python, and Coding with Minecraft, as well as for intermediate-level programmers, like Beyond the Basic Stuff with Python and The Recursive Book of Recursion (all from No Starch Press).
Available for sale exclusive:
•     Afghanistan
•     Aland Islands
•     Albania
•     Algeria
•     Andorra
•     Angola
•     Anguilla
•     Antarctica
•     Antigua/Barbuda
•     Argentina
•     Armenia
•     Aruba
•     Australia
•     Austria
•     Azerbaijan
•     Bahamas
•     Bahrain
•     Bangladesh
•     Barbados
•     Belarus
•     Belgium
•     Belize
•     Benin
•     Bermuda
•     Bhutan
•     Bolivia
•     Bonaire, Saba
•     Bosnia Herzeg.
•     Botswana
•     Bouvet Island
•     Brazil
•     Brit.Ind.Oc.Ter
•     Brit.Virgin Is.
•     Brunei
•     Bulgaria
•     Burkina Faso
•     Burundi
•     Cambodia
•     Cameroon
•     Canada
•     Cape Verde
•     Cayman Islands
•     Centr.Afr.Rep.
•     Chad
•     Chile
•     China
•     Christmas Islnd
•     Cocos Islands
•     Colombia
•     Comoro Is.
•     Congo
•     Cook Islands
•     Costa Rica
•     Croatia
•     Cuba
•     Curacao
•     Cyprus
•     Czech Republic
•     Dem. Rep. Congo
•     Denmark
•     Djibouti
•     Dominica
•     Dominican Rep.
•     Ecuador
•     Egypt
•     El Salvador
•     Equatorial Gui.
•     Eritrea
•     Estonia
•     Ethiopia
•     Falkland Islnds
•     Faroe Islands
•     Fiji
•     Finland
•     France
•     Fren.Polynesia
•     French Guinea
•     Gabon
•     Gambia
•     Georgia
•     Germany
•     Ghana
•     Gibraltar
•     Greece
•     Greenland
•     Grenada
•     Guadeloupe
•     Guam
•     Guatemala
•     Guernsey
•     Guinea Republic
•     Guinea-Bissau
•     Guyana
•     Haiti
•     Heard/McDon.Isl
•     Honduras
•     Hong Kong
•     Hungary
•     Iceland
•     India
•     Indonesia
•     Iran
•     Iraq
•     Ireland
•     Isle of Man
•     Israel
•     Italy
•     Ivory Coast
•     Jamaica
•     Japan
•     Jersey
•     Jordan
•     Kazakhstan
•     Kenya
•     Kiribati
•     Kuwait
•     Kyrgyzstan
•     Laos
•     Latvia
•     Lebanon
•     Lesotho
•     Liberia
•     Libya
•     Liechtenstein
•     Lithuania
•     Luxembourg
•     Macau
•     Macedonia
•     Madagascar
•     Malawi
•     Malaysia
•     Maldives
•     Mali
•     Malta
•     Marshall island
•     Martinique
•     Mauritania
•     Mauritius
•     Mayotte
•     Mexico
•     Micronesia
•     Minor Outl.Ins.
•     Moldavia
•     Monaco
•     Mongolia
•     Montenegro
•     Montserrat
•     Morocco
•     Mozambique
•     Myanmar
•     Namibia
•     Nauru
•     Nepal
•     Netherlands
•     New Caledonia
•     New Zealand
•     Nicaragua
•     Niger
•     Nigeria
•     Niue
•     Norfolk Island
•     North Korea
•     North Mariana
•     Norway
•     Oman
•     Pakistan
•     Palau
•     Palestinian Ter
•     Panama
•     PapuaNewGuinea
•     Paraguay
•     Peru
•     Philippines
•     Pitcairn Islnds
•     Poland
•     Portugal
•     Puerto Rico
•     Qatar
•     Reunion Island
•     Romania
•     Russian Fed.
•     Rwanda
•     S. Sandwich Ins
•     Saint Martin
•     Samoa,American
•     San Marino
•     SaoTome Princip
•     Saudi Arabia
•     Senegal
•     Serbia
•     Seychelles
•     Sierra Leone
•     Singapore
•     Sint Maarten
•     Slovakia
•     Slovenia
•     Solomon Islands
•     Somalia
•     South Africa
•     South Korea
•     South Sudan
•     Spain
•     Sri Lanka
•     St Barthelemy
•     St. Helena
•     St. Lucia
•     St. Vincent
•     St.Chr.,Nevis
•     St.Pier,Miquel.
•     Sth Terr. Franc
•     Sudan
•     Suriname
•     Svalbard
•     Swaziland
•     Sweden
•     Switzerland
•     Syria
•     Tadschikistan
•     Taiwan
•     Tanzania
•     Thailand
•     Timor-Leste
•     Togo
•     Tokelau Islands
•     Tonga
•     Trinidad,Tobago
•     Tunisia
•     Turkey
•     Turkmenistan
•     Turks&Caicos Is
•     Tuvalu
•     US Virgin Is.
•     USA
•     Uganda
•     Ukraine
•     Unit.Arab Emir.
•     United Kingdom
•     Uruguay
•     Uzbekistan
•     Vanuatu
•     Vatican City
•     Venezuela
•     Vietnam
•     Wallis,Futuna
•     West Saharan
•     Western Samoa
•     Yemen
•     Zambia
•     Zimbabwe

Part I: Python Programming Basics
Chapter 1: Python Basics
Chapter 2: If-Else and Flow Control
Chapter 3: Loops
Chapter 4: Functions
Chapter 5: Lists
Chapter 6: Debugging
Chapter 7: Dictionaries and Structuring Data
Chapter 8: Strings and Text Editing

Part II: Automating Tasks
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: Excel Spreadsheets
Chapter 15: Google Sheets
Chapter 16: SQLite Databases
Chapter 17: PDFs and Word Documents
Chapter 18: CSV, JSON, YAML, and TOML Files
Chapter 19: Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 20: Sending Email and Text Messages
Chapter 21: Manipulating Images
Chapter 22: Controlling the Keyboard and Mouse with GUI Automation
Chapter 23: Working with Sound Files, Speech Recognition, and Text-to-Speech
Chapter 24: Working with Audio, Video, and Webcams

​​​​​​​Appendix A: Installing Third Party Modules
Appendix B: Running Programs
Appendix C: Answers to Practice Questions

About

The bestselling introduction to Python programming, revised to include the latest Python features, improved explanations, and new chapters about databases and sound files.

If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you?

In this fully revised edition of the best-selling classic Automate the Boring Stuff with Python, you’ll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. You'll learn the basics of coding in Python and explore the language’s’s rich library of modules for performing specific tasks, like scraping data from websites, searching for text across multiple files, and merging, watermarking, or encrypting PDFs.

The third edition includes:

  • Expanded coverage of developer techniques, like creating command line programs
  • Updated examples and new projects
  • Additional chapters about working with SQLite databases, speech-recognition technology, video and audio editing, and text-to-speech capabilities
  • Simplified explanations (based on reader feedback) of beginner programming concepts, like loops and conditionals

Even if you've never written a line of code, Automate the Boring Stuff with Python, 3rd Edition will teach you how to make your computer take on tedious tasks and do all your grunt work—the way it should be!

Creators

Al Sweigart is a professional software developer who teaches programming to kids and adults. Sweigart has written several bestselling programming books for beginners, including Invent Your Own Computer Games with Python, Cracking Codes with Python, and Coding with Minecraft, as well as for intermediate-level programmers, like Beyond the Basic Stuff with Python and The Recursive Book of Recursion (all from No Starch Press).

Table of Contents

Part I: Python Programming Basics
Chapter 1: Python Basics
Chapter 2: If-Else and Flow Control
Chapter 3: Loops
Chapter 4: Functions
Chapter 5: Lists
Chapter 6: Debugging
Chapter 7: Dictionaries and Structuring Data
Chapter 8: Strings and Text Editing

Part II: Automating Tasks
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: Excel Spreadsheets
Chapter 15: Google Sheets
Chapter 16: SQLite Databases
Chapter 17: PDFs and Word Documents
Chapter 18: CSV, JSON, YAML, and TOML Files
Chapter 19: Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 20: Sending Email and Text Messages
Chapter 21: Manipulating Images
Chapter 22: Controlling the Keyboard and Mouse with GUI Automation
Chapter 23: Working with Sound Files, Speech Recognition, and Text-to-Speech
Chapter 24: Working with Audio, Video, and Webcams

​​​​​​​Appendix A: Installing Third Party Modules
Appendix B: Running Programs
Appendix C: Answers to Practice Questions
Penguin Random House Comics Retail