Buy new:
-48%
EUR22.16EUR22.16
EUR 10.88 delivery Friday, March 6
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Good
EUR18.37EUR18.37
EUR 10.88 delivery Wednesday, March 11
Ships from: Amazon Sold by: Rainbow Books LLC
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners 2nd Edition
Purchase options and add-ons
The second edition of this international fan favorite includes a brand-new chapter on input validation, Gmail and Google Sheets automations, tips for updating CSV files, and more.
If you've ever spent hours renaming files or updating spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? Automate the Boring Stuff with Python, 2nd Edition teaches even the technically uninclined how to write programs that do in minutes what would take hours to do by hand—no prior coding experience required!
This new, fully revised edition of Al Sweigart’s bestselling Pythonic classic, Automate the Boring Stuff with Python, covers all the basics of Python 3 while exploring its rich library of modules for performing specific tasks, like scraping data off the Web, filling out forms, renaming files, organizing folders, sending email responses, and merging, splitting, or encrypting PDFs. There’s also a brand-new chapter on input validation, tutorials on automating Gmail and Google Sheets, tips on automatically updating CSV files, and other recent feats of automations that improve your efficiency.
Detailed, step-by-step instructions walk you through each program, allowing you to create useful tools as you build out your programming skills, 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. Boring tasks no longer have to take to get through—and neither does learning Python!
- ISBN-101593279922
- ISBN-13978-1593279929
- Edition2nd
- PublisherNo Starch Press
- Publication dateNovember 12, 2019
- LanguageEnglish
- Dimensions7 x 1.25 x 9.25 inches
- Print length592 pages
There is a newer edition of this item:
Similar items that may deliver to you quickly

Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginnersunknown authorSpiral-boundEUR 9.47 shippingGet it as soon as Tuesday, Mar 10
The Big Book of Small Python Projects: 81 Easy Practice ProgramsPaperbackEUR 10.33 shippingGet it as soon as Friday, Mar 13Only 7 left in stock - order soon.
Customers also bought or read
- Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerSoftware Development
PaperbackEUR23.38EUR23.38EUR 10.40 delivery Fri, Mar 6 - The Big Book of Small Python Projects: 81 Easy Practice Programs
PaperbackEUR30.57EUR30.57EUR 10.33 delivery Fri, Mar 13 - Impractical Python Projects: Playful Programming Activities to Make You Smarter
PaperbackEUR19.71EUR19.71EUR 10.40 delivery Fri, Mar 6 - Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
PaperbackEUR16.97EUR16.97EUR 9.94 delivery Tue, Mar 10 - Object-Oriented Python: Master OOP by Building Games and GUIs
PaperbackEUR33.59EUR33.59EUR 9.94 delivery Tue, Mar 10 - Python for Everybody: Exploring Data in Python 3
PaperbackEUR12.73EUR12.73EUR 9.71 delivery Wed, Mar 11 - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data#1 Best SellerComputer Programming Structured Design
PaperbackEUR18.25EUR18.25EUR 10.09 delivery Tue, Mar 10 - Dead Simple Python: Idiomatic Python for the Impatient Programmer
PaperbackEUR40.33EUR40.33EUR 11.51 delivery Thu, Mar 12 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
PaperbackEUR37.35EUR37.35EUR 10.51 delivery Fri, Mar 6 - Invent Your Own Computer Games with Python, 4th Edition
PaperbackEUR22.93EUR22.93EUR 9.89 delivery Fri, Mar 13 - Fluent Python: Clear, Concise, and Effective Programming
PaperbackEUR37.35EUR37.35EUR 11.31 delivery Fri, Mar 6 - Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
PaperbackEUR27.48EUR27.48EUR 9.71 delivery Tue, Mar 10 - Python Crash Course, 2nd Edition: A Hands-On, Project-Based Introduction to Programming
PaperbackEUR21.18EUR21.18EUR 10.88 delivery Mar 9 - 19 - Think Python: How to Think Like a Computer Scientist
PaperbackEUR29.49EUR29.49EUR 9.71 delivery Fri, Mar 6 - Python for Data Science: A Hands-On Introduction
PaperbackEUR37.53EUR37.53EUR 9.54 delivery Mar 9 - 20 - PowerShell for Sysadmins: Workflow Automation Made Easy#1 Best SellerMicrosoft C & C++ Windows Programming
PaperbackEUR19.74EUR19.74EUR 9.89 delivery Mar 6 - 19 - Learn to Code by Solving Problems: A Python Programming Primer
PaperbackEUR20.37EUR20.37EUR 10.09 delivery Tue, Mar 10 - Python Pocket Reference: Python In Your Pocket (Pocket Reference (O'Reilly))
PaperbackEUR10.00EUR10.00EUR 9.37 delivery Mar 6 - 18 - Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters
PaperbackEUR25.63EUR25.63EUR 9.40 delivery Fri, Mar 6 - Real-World Python: A Hacker's Guide to Solving Problems with Code
PaperbackEUR32.46EUR32.46EUR 10.15 delivery Wed, Mar 11 - Dive Into Algorithms: A Pythonic Adventure for the Intrepid Beginner
PaperbackEUR29.82EUR29.82EUR 9.48 delivery Thu, Mar 12 - Python Tricks: A Buffet of Awesome Python Features
PaperbackEUR25.24EUR25.24EUR 9.63 delivery Wed, Mar 11 - Learn Python 3 the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code (Zed Shaw's Hard Way Series)
PaperbackEUR17.77EUR17.77EUR 9.40 delivery Tue, Mar 10 - Cracking Codes with Python: An Introduction to Building and Breaking Ciphers
PaperbackEUR17.98EUR17.98EUR 10.40 delivery Mar 11 - 25 - Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More!
PaperbackEUR25.25EUR25.25EUR 9.48 delivery Tue, Mar 10 - Think Like a Programmer: An Introduction to Creative Problem Solving
PaperbackEUR29.59EUR29.59EUR 10.09 delivery Tue, Mar 10 - JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming
PaperbackEUR25.71EUR25.71EUR 9.82 delivery Tue, Mar 10 - Python for Excel: A Modern Environment for Automation and Data Analysis
PaperbackEUR33.95EUR33.95EUR 9.83 delivery Tue, Mar 10
From the Publisher
Python for Kids, 2nd Edition by Jason Briggs
|
Python Crash Course, 3rd Edition by Eric Matthes
|
Automate the Boring Stuff 2nd edition by Al Sweigart
|
Dead Simple Python by Jason C McDonald
|
Beyond the Basic Stuff with Python by Al Sweigart
|
Object-Oriented Python by Irv Kalb
|
|
|---|---|---|---|---|---|---|
| Customer Reviews |
4.6 out of 5 stars 137
|
4.8 out of 5 stars 2,167
|
4.7 out of 5 stars 3,472
|
4.6 out of 5 stars 68
|
4.7 out of 5 stars 348
|
4.7 out of 5 stars 215
|
| Price | EUR 15.51EUR15.51 | EUR 23.38EUR23.38 | EUR 22.16EUR22.16 | EUR 41.80EUR41.80 | EUR 16.97EUR16.97 | EUR 33.59EUR33.59 |
| User experience level | Beginner | Beginner | Beginner | Beginners with prior programming experience | Intermediate | 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 thorough introduction to Python for existing programmers | Bridges the gap between novice and professional | Learn how to write powerful, efficient, and re-usable code. |
| Compatible with Python version | Python 3 | Python 3 | Python 3 | Python 3 | Python 3.6 and higher | Python 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 | Covers syntax basics, functions, parallelism and debugging | Covers decorators, generators, context managers, testing, and web development | Covers modeling, pygame, inheritance, polymorphism, abstraction, and encapsulation |
| Page count | 368 pages | 552 pages | 592 pages | 752 pages | 384 pages | 416 pages |
Editorial Reviews
Review
—Mashable
"I think many educational resources jump levels way too quickly. One of the best I ever used was Automate the Boring Stuff with Python - that book stayed at the right level the whole way!"
—Oscar Baruffa, @OscarBaruffa
Praise for the first edition of Automate the Boring Stuff with Python:
"The best part of programming is the triumph of seeing the machine do something useful. Automate the Boring Stuff with Python frames all of programming as these small triumphs; it makes the boring fun.”
—Hilary Mason, Founder of Fast Forward Labs and Data Scientist in Residence at Accel
“Do you need Automate the Boring Stuff with Python? Yes, if you want to enhance your workflow by using automation, this is an excellent place to start. Highly recommended.”
—Network World
“Valuable to have on your shelf...an extremely useful book.”
—Kids, Code, and Computer Science Magazine
"Automate the Boring Stuff with Python is perfect for anyone who has menial tasks they don't want to spend hours doing."
—GeekMom
"Whether you prefer working through a book, or learning by watching, or both together, Automate the Boring Stuff will have you productive in Python in no time."
—Serdar Yegulalp, InfoWorld
"If you seriously want to know how much Python helps with automation, my favorite place is the Automate Boring Stuff with Python book, a simply awesome book."
—Javin Paul, Hacker Noon
"This is certainly a much more engaging way to learn Python . . . it gets you all excited by the prospect of making cool little programs that will save you time."
—Andrew Lau, AndrewLauActuary.com
"I've found both the book and Udemy course of Automate the Boring Stuff with Python by Al Sweigart to be really helpful."
—Mark S, @Awful_Curious
"Best Python book you can buy today."
—Rodrigo Ribeiro, @mcapablanca
About the Author
Product details
- Publisher : No Starch Press
- Publication date : November 12, 2019
- Edition : 2nd
- Language : English
- Print length : 592 pages
- ISBN-10 : 1593279922
- ISBN-13 : 978-1593279929
- Item Weight : 2.43 pounds
- Dimensions : 7 x 1.25 x 9.25 inches
- Best Sellers Rank: #53,862 in Books (See Top 100 in Books)
- #21 in Introductory & Beginning Programming
- #33 in Software Development (Books)
- #34 in Python Programming
- Customer Reviews:
About the author

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
I am sure it will be a very good book
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on May 11, 2021Format: PaperbackVerified PurchaseI have six books from this company now, three on Linux and three on Python. All are excellent additions to any library. The material they present continues to be easy to understand with every new book I buy from them. Coding is NOT easy, there's a lot of stuff to learn and tons that you've got to commit to memory. These books make the process enjoyable, and they use practical examples that make it a lot easier to understand things like the flow of logic within statements.
Allow me to give a little context: I started with computers in the 80's when I was a kid. BASIC was all I had access to, fun, but not a great start. My first PC came along and I learned DOS, despite the mostly crappy documentation. Linux came along at the end of the 90's and, while it was a great OS back then, documentation held it back on the desktop. Best I could do was get it to boot, so Windows was the only choice for a couple decades.
Flash forward to the present, and I've ditched Windows completely, picked up a couple books (I don't yet own a book on Linux NOT published by No Starch) and I do better now with Linux than I ever did with Windows. Linux documentation quality is also light-years beyond what it was in the 90's, too. I spent a month on Mint and went straight to Arch. Things have changed THAT much.
- Reviewed in the United States on April 21, 2025Format: PaperbackVerified PurchaseThe author does a great job of presenting the python language in an easy to read and approchable manner. I am really enjoying this book and have learned a lot. Before starting this book I knew nearly nothing about python and programming, but this book has helped to supplement my knowledge.
- Reviewed in the United States on February 27, 2021Format: PaperbackVerified PurchaseThis is great. I don't know if it would be great for an absolute beginner. I took a Coursera course on Python called Python For Everybody. That was a fantastic beginner course for total newbies. This was my follow-up. This covers a lot of ground and I was totally impressed and found it very fun and educational. I like the combination of practice projects during the chapter, followed by questions to answer at the end of each chapter and some more projects at the end of the chapter. Totally lays a great foundation for each topic. I think some of the Python packages are out of date though or there are some code errors. I had to find workarounds on Stack Overflow. Overall, I loved this book!!!
- Reviewed in the United States on May 24, 2020Format: PaperbackVerified PurchaseWhile this is indeed a great book to get started with python projects I won’t say it’s a great book for total beginners.
The author often uses coding concepts at the beginning of the book that are not explained until a later chapter leaving some beginners feeling overwhelmed with his programming methods.
I am not a beginner though so understanding the basics was easy for me. The projects are really good for beginners too. Though I would recommend starting with Python Crash Course 2nd edition which goes through the fundamentals in greater detail and is more organized in its teaching approach (it also comes with projects at the end of the fundamental chapters).
Overall good book just wished it was better organized for the “beginner”
- Reviewed in the United States on September 16, 2023Automate the Boring Stuff with Python is an easy-to-read and quick-to-apply Python book with many practical program examples. Thanks, Al!
I didn't do any programming other than simple automation shell scripts after graduation. This summer, I wanted to help my interns build a new MVP (minimum viable product). I was keen to develop some automation tools to help my customers control their cameras. I am glad that I took action to learn and code in Python!
I was lucky to find "Automate the Boring Stuff with Python"! The book cover is eye-catching. The preface is clear about what readers can achieve from the book. The code examples and quizzes are very useful and practical, such as how to find information using Regular Expressions, send text messages with Twilio, and draw text on images. I applied them to build my first Python-based MVP!
Programming is a creative activity. I am happy to create Python tools to help me automate boring and very boring tasks! I want to go further! I continue my Python journey with "Beyond the Basic Stuff with Python"!
- Reviewed in the United States on April 1, 2023Format: PaperbackVerified PurchaseI took a college level Java class 3 years ago just because it was required. 3 years and a new job later, this book made the transition easy if not almost repetitive. Great Book, got me off and running in my new job. Then read, "Python for Excel" to fill some gaps and then added in stackexchange screenshots for python questions and dug deeper into selenium. and now save roughly 3-4 hours of my typical day to automation.
Note of Selenium:
The newest version of the book is not the compatible with the current version of Selenium. You'll have to modify the code a bit. Luckily this book is popular enough that when you search you find someone who already read the book and asked exactly what you're struggling with.
Great Book!!!
- Reviewed in the United States on August 27, 2020Format: PaperbackVerified PurchaseI am working through this book and haven't finished it yet. I am a long term programmer having programmed for pay in Fortran for multiple jobs. I have been programming for over 30 years and learning an object oriented language requires a shift in perspective. So, I need little in algorithm development but details on the language features is important and capabilities to do the things that were simple in other languages is important to know how to do it in Python. This book is very complementary to the book Think Python, IMHO.
I am working in Data Science and Machine Learning in particular and found that my ability to program in Python was lacking. So far this book has done a very good job familiarizing me with how to do certain critical things in Python. For Data Science having a section on web site data scraping is very important. I could just look how to do this. Also the data structures are much richer and varied. In Fortran you created any complexity in data structure yourself. I highly recommend this book for both new programmers and advanced programmers who need or want to learn Python.
Top reviews from other countries
-
JohanReviewed in Sweden on February 11, 20244.0 out of 5 stars Introduktion till Python för alla dvs för icke programmerare
Format: PaperbackVerified PurchaseHelt okey intro bok till Python.
Josep MariaReviewed in Spain on January 30, 20205.0 out of 5 stars Teòric i pràctic.
Format: PaperbackVerified PurchaseBoníssim. Teoria i pràctica alhora.
-
Jonathan Piedra SoberanisReviewed in Mexico on March 5, 20255.0 out of 5 stars Me gustó el libro
Format: PaperbackVerified PurchaseElegí que fuera en inglés porque también me preparo para ello y aún así encontré el material muy explícito
Vinod.KochiReviewed in India on March 16, 20215.0 out of 5 stars Automate the boring stuff with Python 2nd edition.. Excellent quality Book..
Format: PaperbackVerified PurchaseExcellent Book for Python learners. Quality of the book is so good that being a thick book containing 500+ pages the printers having taken to bind the book in such a way the binding is not damaged and reading is so smooth.
Author, Book Content, Quality of Book all I am giving 5*.
But only suggestion to Amazon is to speed up delivery by improving the logistics maybe in certain departments related to certain products like books....
It took 5+ days to get the book.
Otherwise all good. Happy.
Thanks Amazon.
SeanReviewed in the United Kingdom on February 5, 20235.0 out of 5 stars Awesome book for moving from basic to intermediate Python skills
Format: PaperbackVerified PurchasePositive Python Logo
Automate the boring stuff
Automate The Boring Stuff With Python : Practical Programming for Total Beginners
Sean Massey 5 Feb 2023
Automate the boring stuff
Categories: Book Review, Foundation, Intermediate, Skills
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.…
I’ve just finished the final challenge of the final chapter of Al Sweigart’s awesome Automate the Boring Stuff With Python. It has been an immensity enjoyable journey through Python’s basic and intermediate programming skills and I have learnt a great deal about how I will build my applications in Python.
It covers the basics very quickly, Al is really upfront about this though and from my point of view it meant I could brush up some core skills before diving into what feels like some pretty advanced stuff really quickly. Each chapter follows a really clear structure; basic principals, example code typed into IDLE, build a sample project in your editor that Al provides, review, questions about the chapter, Al offers some challenges for you to do yourself. These are done in the style of the technical challenge on The great British Bake Off, by which I mean he offers a description of what app you need to bake, with some essential ingredients you should be using, but leaving plenty of space for you to bake your code, your way. Everything you need is in the book so you will never get lost.
As the books travels through the chapters, some of these example projects combine skills learnt previously and really opened my eyes to the power that can quickly created by the combination of great foundational Python skills and the libraries available to me.
Al’s writing style is conversational and direct, which I found very easy to follow and if you also follow him on Twitter you will see reflects his free-spirited Twitter personality. I’d love to meet him one day to see if it matches his actual personality…I’ll bet it does.
A couple of things to think about while you are using this book;
1. Al (quite deliberately) does not use full PEP8 styling in his code. For me this was not a problem at all, if anything it enhances the accessibility of the book. I found I used his styling when entering code into REPL, but when coding in the IDE I ‘translated’ to PEP8 as this helped me reinforce those skills for myself and also forced me to really understand how the projects work, which helped me when I wrote my own.
2. There have been some changes to APIs and Libraries since the book was published, however the book’s website helps you through this and also has all the download files you need to complete the project, a feature I don’t see in many other books aimed at the same market.
3. You will need to learn a bit about how your operating system manages paths/folders/files which can be a little esoteric. However, Al provides great guidance on this topic and for me this is an essential skill for any Python coder.
4. At first the end of chapter challenges feel a little daunting….believe me if you complete them all (and all the knowledge you need is in the book) then you will improve your understanding of you will build your own applications more quickly then you can imagine!
The areas covered in the book are;
Part I: Python Programming Basics
Chapter 1: Python Basics
Chapter 2: Flow Control
Chapter 3: Functions
Chapter 4: Lists
Chapter 5: Dictionaries and Structuring Data
Chapter 6: Manipulating Strings
Part II: Automating Tasks
Chapter 7: Pattern Matching with Regular Expressions
Chapter 8: Input Validation
Chapter 9: Reading and Writing Files
Chapter 10: Organizing Files
Chapter 11: Debugging
Chapter 12: Web Scraping
Chapter 13: Working with Excel Spreadsheets
Chapter 14: Working with Google Sheets
Chapter 15: Working with PDF and Word Documents
Chapter 16: Working with CSV Files and JSON Data
Chapter 17: Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 18: Sending Email and Text Messages
Chapter 19: Manipulating Images
Chapter 20: Controlling the Keyboard and Mouse with GUI Automation
Appendix A: Installing Third-Party Modules
Appendix B: Running Programs
Appendix C: Answers to the Practice Questions
By the end of this book I could manage files, scrape websites, send SMS’s from Python, look for patterns in massive data sets, manage image files and much more. Thanks Al, I am ready to build my own apps now!










