Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners

The second edition of this best-selling Python book (100,000+ copies sold in print alone) uses Python 3 to teach even the technically uninclined how to write programs that do in minutes what would take hours to do by hand.


About The Author

Al Sweigart

Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners

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 second 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.

get also: Behavior Analysis and Learning: A Biobehavioral Approach, Sixth Edition.

You’ll learn the basics of Python and explore Python’s rich library of modules for performing specific tasks, like scraping data off websites, reading PDF and Word documents, and automating clicking and typing tasks.

The second edition of this international fan-favorite includes a brand-new chapter on input validation, as well as tutorials on automating Gmail and Google Sheets, plus tips on automatically updating CSV files. You’ll learn how to create programs that effortlessly perform useful feats of automation to:

  Search for text in a file or across multiple files
  Create, update, move, and rename files and folders
  Search the Web and download online content
  Update and format data in Excel spreadsheets of any size
  Split, merge, watermark, and encrypt PDFs
  Send email responses and text notifications
  Fill out online forms

Step-by-step instructions walk you through each program and updated practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks.

Don’t spend your time doing work a well-trained monkey could do. Even if you’ve never written a line of code, you can make your computer do the grunt work. Learn how to Automate the Boring Stuff with Python, 2nd Edition.

From the Publisher

User experience level




Beginner to Intermediate



For readers who want

A gentle, kid-friendly introduction to Python

A fast-paced, thorough introduction to Python

A practical guide to using Python for automating tedious tasks

A quick and easy way to review Python fundamentals, vocabulary, syntax and more

Fun, entertaining projects to take your Python skills to the next level

Expert, practical advice and tutorials to perfect your professional Python skills

Compatible with Python version

Python 3

Python 3

Python 3

Python 3

Python 3

Python 2 & 3

Special features

Kid-friendly, full-color code and illustrations

Covers Django, matplotlib and plotly, and pygame

Covers working with files en masse, automating emails and texts, scraping the web, and more

Flash card format; includes exercises and challenges to test and hone your skills

Covers modules like pygame, Pylint, pydocstyle, tkinter, python-docx, matplotlib, and pillow.Covers powerful techniques like using generators, handling time zones, and applying functional programming

Page count

344 pages

544 pages

592 pages

101 cards

424 pages

240 pages