> Skip to content
  • Published: 18 May 2021
  • ISBN: 9781718501249
  • Imprint: No Starch
  • Format: Paperback
  • Pages: 432
  • RRP: $64.99

The Big Book of Small Python Projects



Programmers commonly read code to sharpen their coding skills just as a technical mountain climber might watch endless videos showing the details of a particularly hard technique. The 100+ short programs in Big Book of Small Python Projects are designed to help beginning-to-intermediate programmers expand their knowledge of how to deploy Python creatively and effectively by offering coding examples that will help them to tackle their own coding challenges.

Deploy Python creatively and effectively through this collection of short coding projects carefullly curated by best-selling author and Python expert Al Sweigart.

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.

You’ll create:

● Hangman, Blackjack and other games to play against a computer or your friends
● Simulations of a spreading forest fire, a million dice rolls, and a Japanese abacus
● Animation programs, like a fish tank, a rotating cube, and a bouncing DVD logo
● Mazes that you design then escape from, and a 3D Maze Runner-like video game
● Encryption programs that use ciphers like ROT13 and Vigenère to conceal text

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.

  • Published: 18 May 2021
  • ISBN: 9781718501249
  • Imprint: No Starch
  • Format: Paperback
  • Pages: 432
  • RRP: $64.99

Also by AL SWEIGART

See all

Praise for The Big Book of Small Python Projects

"I've always been impressed by the variety of simple, but interesting and fun, projects Al can come up with and this collection takes that to the next level. . . . Even experienced coders are likely to be pulled into browsing through the wide variety that Al has put into this book." —Naomi Ceder, Fellow of the Python Software Foundation "Al Sweigart presents fun programs, inspiring learners to tweak them. That's how I learned to program: tinkering with examples from books and magazines. It works!" –Luciano Ramalho, Technical Principal at ThoughtWorks and author of Fluent Python

Related titles