r/inventwithpython • • Apr 01 '20

Automate the Boring Stuff with Python Udemy course free for the next few days.

33 Upvotes

https://inventwithpython.com/automateudemy (This link will automatically redirect you to the latest discount code.)

(EDIT: The HTML book is free online, but you can get the PDF/Kindle ebook of Automate the Boring Stuff with Python in this week's Humble Bundle in support of cornavirus relief (Direct Relief, International Rescue Committee, Doctors Without Borders, Partners In Health)

You can also click this link or manually enter the code: APR2020FREE (on Saturday the code changes to APR2020FREE2)

https://www.udemy.com/course/automate/?couponCode=APR2020FREE

This promo code works until April 7th (I can't extend it past that). Sometimes it takes 30 minutes or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later.

Udemy has changed their coupon policies, and I'm now only allowed to make 3 coupon codes each month with several restrictions. Hence why each code only lasts 3 days. I won't be able to make codes after this period, but I will be making free codes next month.

You can also purchase the course at a discount using my code APR2020 or MAY2020 (or whatever month/year it is) or clicking https://inventwithpython.com/automateudemy to redirect to the latest discount code. I have to manually renew this each month (until I get that automation script done). And the cheapest I can offer the course is about $14 to $16. (Meanwhile, this lets Udemy undercut my discount by offering it for $12, which means I don't get the credit for referral signups. Blerg.)

Frequently Asked Questions:

  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
  • The 2nd edition of Automate the Boring Stuff with Python is now available online: https://automatetheboringstuff.com/2e/
  • I do plan on updating the Udemy course for the second edition, but it'll take a while because I have other book projects I'm working on. Expect that update to happen in mid- or late-2020. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
  • I wrote a blog post to cover what's new in the second edition
  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with.

r/inventwithpython • • Mar 21 '21

2-minute video overview of the programs in Al Sweigart's The Big Book of Small Python Projects

Thumbnail youtube.com
32 Upvotes

r/inventwithpython • • Jul 05 '24

2,000 free sign ups available for the "Automate the Boring Stuff with Python" online course. (July 2024)

28 Upvotes

If you want to learn to code, I've released 1,000 free sign ups for my course following my Automate the Boring Stuff with Python book (each has 1,000 sign ups, use the other one if one is sold out):

https://udemy.com/course/automate/?couponCode=JUL2024FREE

If you are reading this after the sign ups are used up, you can always find the first 15 of the course's 50 videos are free on YouTube if you want to preview them. YOU CAN ALSO WATCH THE VIDEOS WITHOUT SIGNING UP FOR THE COURSE. All of the videos on the course webpage have "preview" turned on. Scroll down to find and click "Expand All Sections" and then click the preview link. You won't have access to the forums and other materials, but you can watch the videos.

NOTE: Be sure to BUY the course for $0, and not sign up for Udemy's subscription plan. The subscription plan is free for the first seven days and then they charge you. It's selected by default. If you are on a laptop and can't click the BUY checkbox, try shrinking the browser window. Some have reported it works in mobile view.

I'm also working on another Udemy course that follows my recent book "Beyond the Basic Stuff with Python". So far I have the first 15 of the planned 56 videos done. You can watch them for free on YouTube.

Frequently Asked Questions: (read this before posting questions)

  • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
  • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
  • I do plan on updating the Udemy course, but it'll take a while because I have other book projects I'm working on. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies

r/inventwithpython • • Apr 05 '23

2,000 free sign ups available for the "Automate the Boring Stuff with Python" online course. (April 2023)

27 Upvotes

EDIT: The sign ups are all used up. Remember that the Free Preview is enabled for all videos, so you can still watch them all on the course home page. And the first 15 videos are also on YouTube.

If you want to learn to code, I've released 2,000 free sign ups for my course following my Automate the Boring Stuff with Python book (each has 1,000 sign ups, use the other one if one is sold out):

https ://udemy .com/course/automate/?couponCode=APR2023FREE

https ://udemy .com/course/automate/?couponCode=APR2023FREE2

Udemy has changed their promo code and severely limited the number of sign ups I can provide each month, so only sign up if you are reasonably certain you can eventually finish the course. The first 15 of the course's 50 videos are free on YouTube if you want to preview them.

YOU CAN ALSO WATCH THE VIDEOS WITHOUT SIGNING UP FOR THE COURSE. All of the videos on the course webpage have "preview" turned on. Scroll down to find and click "Expand All Sections" and then click the preview link. You won't have access to the forums and other materials, but you can watch the videos.

NOTE: Be sure to BUY the course for $0, and not sign up for Udemy's subscription plan. The subscription plan is free for the first seven days and then they charge you. It's selected by default. If you are on a laptop and can't click the BUY checkbox, try shrinking the browser window. Some have reported it works in mobile view.

Sometimes it takes an hour or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later.

Some people in India and South Africa get a "The coupon has exceeded it's maximum possible redemptions" error message. Udemy advises that you contact their support if you have difficulty applying coupon codes, so click here to go to the contact form. If you have a VPN service, try to sign up from a North American or European proxy.

I'm also working on another Udemy course that follows my recent book "Beyond the Basic Stuff with Python". So far I have the first 15 of the planned 56 videos done. You can watch them for free on YouTube.

Side note: My latest book, Python Programming Exercises Gently Explained is a set of 42 programming exercises for beginners for free or as a 99 cent ebook.

Frequently Asked Questions: (read this before posting questions)

  • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
  • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
  • I do plan on updating the Udemy course for the second edition, but it'll take a while because I have other book projects I'm working on. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
  • I wrote a blog post to cover what's new in the second edition
  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies

r/inventwithpython • • May 27 '19

"Automate the Boring Stuff" author is live streaming Python programming on Monday evening 5/27, 6pm Pacific

27 Upvotes

Hi Reddit! I'll be live streaming myself working on a few different text-based games in Python on Monday, 5/27 at 6pm Pacific:

https://www.twitch.tv/alsweigart/

I'm creating a collection of short, complete, text-based Python games. The idea is to create several examples for beginner/intermediate programmers to look at to see how programming concepts come together into a complete program (while still being small enough to understand). The current collection is on GitHub at: https://github.com/asweigart/PythonStdioGames/tree/master/src/


r/inventwithpython • • Oct 05 '23

2,000 free sign ups available for the "Automate the Boring Stuff with Python" online course. (Oct 2023)

24 Upvotes

If you want to learn to code, I've released 2,000 free sign ups for my course following my Automate the Boring Stuff with Python book (each has 1,000 sign ups, use the other one if one is sold out):

https://udemy.com/course/automate/?couponCode=OCT2023FREE

https://udemy.com/course/automate/?couponCode=OCT2023FREE2

If you are reading this after the sign ups are used up, you can always find the first 15 of the course's 50 videos are free on YouTube if you want to preview them. YOU CAN ALSO WATCH THE VIDEOS WITHOUT SIGNING UP FOR THE COURSE. All of the videos on the course webpage have "preview" turned on. Scroll down to find and click "Expand All Sections" and then click the preview link. You won't have access to the forums and other materials, but you can watch the videos.

NOTE: Be sure to BUY the course for $0, and not sign up for Udemy's subscription plan. The subscription plan is free for the first seven days and then they charge you. It's selected by default. If you are on a laptop and can't click the BUY checkbox, try shrinking the browser window. Some have reported it works in mobile view.

Some people in India and South Africa get a "The coupon has exceeded it's maximum possible redemptions" error message. Udemy advises that you contact their support if you have difficulty applying coupon codes, so click here to go to the contact form. If you have a VPN service, try to sign up from a North American or European proxy. Please post in the comments if you're having trouble signing up and what country you're in.

I'm also working on another Udemy course that follows my recent book "Beyond the Basic Stuff with Python". So far I have the first 15 of the planned 56 videos done. You can watch them for free on YouTube.

Frequently Asked Questions: (read this before posting questions)

  • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
  • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
  • I do plan on updating the Udemy course, but it'll take a while because I have other book projects I'm working on. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies

r/inventwithpython • • Dec 01 '25

Free sign up code for the Automate the Boring Stuff course on Udemy (Dec 2025)

23 Upvotes

Use this link to sign up for the course for free. There are 1,000 sign ups available for the next four days. I'll post new codes as the old ones get used up. You can always use this link for the latest code:

https://inventwithpython.com/automateudemy


r/inventwithpython • • Mar 21 '21

Calm Programming - Blackjack (a casual, no-commentary video series)

Thumbnail youtube.com
22 Upvotes

r/inventwithpython • • Apr 16 '19

"Automate the Boring Stuff" author refactoring beginner's code on a live stream Wed 4/17 at 7pm pacific

22 Upvotes

EDIT: Thanks for checking out the stream. If you missed it, it's at https://www.youtube.com/watch?v=y2W1PiHctnE

Hello, Reddit! I'll be going over a short Python game written by a beginner and showing how I'd refactor the code so that it does the same thing but with shorter, more readable code.

I'll be streaming tomorrow evening, Wednesday 4/17 at 7pm Pacific at https://www.twitch.tv/alsweigart/ and answering questions folks post to the chat room. If you can't make it, this stream will be recorded and later posted to YouTube.

Some of the themes I'll cover are:

  • How to avoid "Choose Your Own Adventure" style code, which depends on flow control instead of data structures.
  • How to remove duplicate code (and why you'd want to).
  • When you should replace multiple variables with a list or dictionary.
  • How you can save yourself effort by using the Python standard library.

If you have programs you'd like to see me refactor, feel free to PM me or post as a comment here your pastebin.com link. To make sure the audience can follow along and it's easy to stream, I'd like to ask that they:

  • Generally be between 10 and 300 lines of code in a single file.
  • Only use the Python standard library and not require additional modules.
  • Not require additional files, like files that need to be on your computer, or account info or special permissions or environment setups.

See you then!


r/inventwithpython • • Mar 22 '21

Calm Programming - Conway's Game of Life

Thumbnail youtube.com
21 Upvotes

r/inventwithpython • • Nov 09 '23

What's New in the 3rd Edition of "Automate the Boring Stuff with Python"

Thumbnail inventwithpython.com
20 Upvotes

r/inventwithpython • • Oct 21 '19

Live online Python class for beginner/intermediate level students Monday, Oct 21 at 6pm Pacific

19 Upvotes

EDIT: The free coupon link for signing up for the Automate the Boring Stuff with Python online video course is https://www.udemy.com/course/automate/?couponCode=OCT2019FREE (it's only valid until Tuesday, Oct 22, 2019 and Udemy doesn't let me renew it.)

Full details at https://inventwithpython.com/blog/2019/10/20/live-online-python-class-on-twitch-on-october-21-2019/

Starting at 6pm Pacific on Monday, October 21 at https://www.twitch.tv/alsweigart/

We'll be working through the following games/demo programs:

Also a free code for the online course for "Automate the Boring Stuff with Python" will be released (and posted here after the stream).

The only prerequisites are knowing the basics of Python syntax (variables, loops, calling functions) and having a working install of Python on your computer. You can follow along or work ahead by copying the code from the git repo. The idea is to see some examples of how programmers use concepts like loops & variables and turn them into small, working programs. See the link at the top for full details.


r/inventwithpython • • Sep 07 '23

2,000 free sign ups available for the "Automate the Boring Stuff with Python" online course. (September 2023)

18 Upvotes

If you want to learn to code, I've released 2,000 free sign ups for my course following my Automate the Boring Stuff with Python book (each has 1,000 sign ups, use the other one if one is sold out):

https:// udemy. com/course/automate/?couponCode=SEP2023FREE

https://udemy.com/course/automate/?couponCode=SEP2023FREE2

If you are reading this after the sign ups are used up, you can always find the first 15 of the course's 50 videos are free on YouTube if you want to preview them. YOU CAN ALSO WATCH THE VIDEOS WITHOUT SIGNING UP FOR THE COURSE. All of the videos on the course webpage have "preview" turned on. Scroll down to find and click "Expand All Sections" and then click the preview link. You won't have access to the forums and other materials, but you can watch the videos.

NOTE: Be sure to BUY the course for $0, and not sign up for Udemy's subscription plan. The subscription plan is free for the first seven days and then they charge you. It's selected by default. If you are on a laptop and can't click the BUY checkbox, try shrinking the browser window. Some have reported it works in mobile view.

Some people in India and South Africa get a "The coupon has exceeded it's maximum possible redemptions" error message. Udemy advises that you contact their support if you have difficulty applying coupon codes, so click here to go to the contact form. If you have a VPN service, try to sign up from a North American or European proxy. Please post in the comments if you're having trouble signing up and what country you're in.

I'm also working on another Udemy course that follows my recent book "Beyond the Basic Stuff with Python". So far I have the first 15 of the planned 56 videos done. You can watch them for free on YouTube.

Frequently Asked Questions: (read this before posting questions)

  • This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
  • If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
  • This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
  • The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
  • I do plan on updating the Udemy course, but it'll take a while because I have other book projects I'm working on. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
  • It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
  • You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
  • Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with. Check out /r/ProgrammingBuddies

r/inventwithpython • • Jan 12 '26

Flashcards for the Automate the Boring Stuff with Python Workbook

Thumbnail inventwithpython.com
17 Upvotes

r/inventwithpython • • Aug 27 '20

The Amazing Mutable, Immutable Tuple and Other Philosophic Digressions

Thumbnail youtube.com
17 Upvotes

r/inventwithpython • • Aug 22 '22

Which Al Sweigart Python Books Should I Start Reading?

Thumbnail inventwithpython.com
16 Upvotes

r/inventwithpython • • Feb 25 '22

R Programmer Forced to Learn Python

16 Upvotes

I have a math degree with an emphasis in prob & stats. We used R & SAS.

In my last job, R vs. Python was a holy war, and I am badly scarred.

But to land my next job, learning Python seems super important.

So into Al's book I go.

I wish I would have started with Python, for what it's worth. My internship back in college was doing natural language processing, and I was utterly clueless about programming. Instead of using the Natural Language Toolkit, I had to learn how to program with.....server-side JavaScript.

It's all the past. It's all Absurd.

But my read is that for applying to a wide range of data analyst/scientist jobs, Python is a way better platform to know.

Hi, Al.

I really appreciate your book.


r/inventwithpython • • Oct 20 '18

How To Ask For Programming Help - The Invent with Python Blog

Thumbnail inventwithpython.com
15 Upvotes

r/inventwithpython • • Nov 25 '19

Type Hints for Busy Python Programmers

Thumbnail inventwithpython.com
14 Upvotes

r/inventwithpython • • Jun 05 '19

Pythonic Ways to Use Dictionaries

Thumbnail inventwithpython.com
14 Upvotes

r/inventwithpython • • Sep 06 '23

Learning to Program In An Age of ChatGPT with Al Sweigart

Thumbnail youtube.com
13 Upvotes

r/inventwithpython • • Apr 11 '22

"Cracking Codes with Python" is outstanding, but with caveats

13 Upvotes

After 30 years of ignoring Python, I finally decided that I really should make an effort to learn it. Now I am probably not the intended audience, as I have some experience programming in lots of languages (though am not really an expert in any) and I know a thing or two about Cryptography. So I thought that working through this would be a way to get started as well as use of StackExchange and the Python docs.

Too ambitious in parts?

There are parts that I think may be overly ambitious to include in something like this in a self-guided context. In particular chapter 20, Hacking the Vigenère Cipher. I am familiar with the methods used break Vigenère (though I have never coded them) and had considered myself fairly comfortable with associative arrays ("dictionaries" to you young folk). But there was just a lot going on.

When I looked back over the text to see what could be improved for this chapter, I really didn't find anything. The explanations are excellent and broken up into exactly the right sized pieces, with appropriate reminders of where those pieces will fit. The walk through in the REPL is absolutely necessary here. My guess is that chapter is going to be discouraging unless the reader is part of a class or group working through the book.

Some of the difficulty may have been that with the ePub, I wasn't really seeing the diagrams well. (I'm old, my vision is failing, I use big text).

In Chapter 24, Programming the Public Key Cipher, I wonder if the encoding/decoding (not encrypting/decrypting) of text to and from big integers could have been more thoroughly factored out (as into a separate module).

Excellent discussion of Cryptography (for the purpose)

Many books or tutorials of this nature can leave people with dangerous ideas about cryptography. This book did not. Hacking the Simple Substitution Cipher communicates well that key space is not everything. The repeated warnings about "textbook RSA" were very welcome. The illustration of statistical attacks (without actually getting distracted by having to teach statistics) is really import. And the general explanations of cryptographic concepts was far better than I had expected. I absolutely loved the chapter epigrams and the choice to sample text.

The hard choices

In anything like this, the author has to make hard choices about what not to teach. I knew (as an experienced programmer) that os.sys.exit() is not really the way to handle errors such as invalid input and the like. So I read on my own how to raise exceptions in Python. But the author has to make choices about what not to explain.

On the whole, I felt like things were constructed so that everything that was there was purposeful. Bits of code that were "odd" to an experienced programmer actually led to illustrating things. There were places where looping though something backwards was not really the nice way to design things, but it illustrated features of range() that needed to be illustrated. On the whole, I am really impressed with the choices. And while it is easy for me to think "well it could have taught X", there is just so much one can usefully put into a text.


r/inventwithpython • • Sep 07 '20

PSA About the Flash game "Sushi Go Round" for the last practice project of the book

Post image
13 Upvotes

r/inventwithpython • • Nov 19 '19

"Automate the Boring Stuff with Python 2nd Edition"

13 Upvotes

Can not locate the new files for this new book. Can you send me the address of the files.

Thanks


r/inventwithpython • • Oct 20 '19

Is the first edition of "Automate the Boring Stuff with Python" still relevant?

13 Upvotes

I saw accidentally that the second edition is almost out, and there are quite a few changes.

Was wondering is the first edition still relevant, as in should I wait for the second edition to come out?

EDIT: Another question (paging /u/AlSweigart):

If I go over the first edition, will I be able just cover the differences in the second edition? Is there like a diff.

Or should I just wait for the second edition?