The Big Book of Small Python Projects

Buy Direct From Publisher (Preferred, Free Ebook) Buy on Amazon

This curated collection of simple Python projects lets you dive right in and make digital art, games, animations, number-crunching tools and more – right away! Forget standard step-by-step tutorials; instead, author Al Sweigart takes a learn-by-doing approach that provides you with over 80 programs to manually copy, run, and play with. Once you see how the code works, it’s time to experiment with your own changes and practice re-creating them yourself.

Each project is a standalone mini-chapter that includes a sample run of the program’s output, the source code, and suggestions for customization. Whether it’s a vintage screensaver, a snail-racing game, a clickbait headline generator, or animated strands of your DNA, these simple, text-based programs are small – limited to 256 lines of code or less – and designed to be self-contained in a single source-code file so you can easily post and share them online.

Watch a trailer video of the book's programming projects.

You’ll create:

For those who’ve mastered basic Python syntax and are ready to have fun making programs, the projects in this book will spark new ideas for what’s possible within just a few pages of code.

Read the Book Online

Receive a Free Review Copy

If you'd like to receive a free ebook copy of The Big Book of Small Python Projects, please fill out the form at https://forms.gle/S1axnBms2XXN5ydbA. You'll receive a free ebook to read, and upon posting a review to Amazon, you will receive a complementary print review copy of the book. (UPDATE: There's been a large amount of interest, and I can't guarantee you'll get a print book. However, I can definitely send you an ebook to review.)

To demonstrate that you will be able to write a review, please send me a link to an Amazon, Goodreads, or Powells review you have written before. If you haven't written an Amazon review before, please explicitly tell me in your email you have an Amazon account and can post reviews. Also, please include the word "walrus" in the subject of your email so I know you read this. I'm happy to send out books to reviewers, but I can only respond to serious inquiries from folks who have read these instructions.

Please post an honest review. Posting a negative review will not impact whether or not you get a free print book. The only requirements are that the review be a minimum of 100 words, you must live within the United States (due to shipping costs), you must have purchased $50 off Amazon in the last year (Amazon has this requirement before you can write a review), and that you email me first before writing the review.