The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.






New Book: The Big Book of Small Python Projects

Sat 26 June 2021    Al Sweigart

My new book, The Big Book of Small Python Projects, is now available from No Starch Press. It's free to read online under a Creative Commons license. This book contains 81 small but complete programming projects written in Python. These projects are designed to help new programmers who have learned the basics see what real programs "look like". These aren't code snippets, but actual, full programs that you can run. At the same time, they are small enough so that their source code is easy to understand.

Read more...



Calm Programming Video Series

Sat 06 March 2021    Al Sweigart

I've started a new video series of me silently coding a small game project from scratch. The Calm Programming series are meant to be coding videos that you can watch while playing the music of your choice. They aren't quite the same as tutorials: they don't have screen capture and aren't narrated, though you can turn on captions for some explanations.

Read more...









Book Review: Code This Game! by Meg Ray (Odd Dot 2019)

Tue 12 November 2019    Al Sweigart

5 Stars: An excellent project-based book for young readers who want to move beyond Scratch

Code This Game is an excellent book that teaches Python programming by guiding the reader through making a tower-defense game from scratch. This is a book that doesn't shy away from programming detail, but manages to remain fun and engaging. If you have a student or child who wants to move beyond MIT's Scratch programming tool and do "real" programming, this is a great book.

Read more...





Pythonic Ways to Use Dictionaries

Wed 05 June 2019    Al Sweigart

Python dictionaries are a useful part of the language. In addition to having the ability to store keys and values, you can also use dictionary methods to manipulate those values, and you can use dictionaries to write more concise code.

Read more...