The Big Book of Small Python Projects
Download Chapter 11: CLICKBAIT HEADLINE GENERATOR
Look Inside!
If youâve mastered basic Python syntax and youâre ready to start writing programs, youâll find The Big Book of Small Python Projects both enlightening and fun. This collection of 81 Python projects will have you making digital art, games, animations, counting programs, and more right away. Once you see how the code works, youâll practice re-creating the programs and experiment by adding your own custom touches.
These simple, text-based programs are 256 lines of code or less. And whether itâs a vintage screensaver, a snail-racing game, a clickbait headline generator, or animated strands of DNA, each project is designed to be self-contained so you can easily share it online.
Youâll create:
- Hangman, Blackjack, and other games to play against your friends or the computer
- Simulations of a forest fire, a million dice rolls, and a Japanese abacus
- Animations like a virtual fish tank, a rotating cube, and a bouncing DVD logo screensaver
- A first-person 3D maze game
- Encryption programs that use ciphers like ROT13 and Vigenère to conceal text
If youâre tired of standard step-by-step tutorials, youâll love the learn-by-doing approach of The Big Book of Small Python Projects. Itâs proof that good things come in small programs!
"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
"Whether you're new to Python or want to exercise your coding brain, I recommend The Big Book of Small Python Projects to spark your thinking. Both the 'big' and the 'small' in the title are accurate. There are a lot of projects in this book, but most code takes up only a page or two. That makes it a fun reference book to get you into the flow or kick off a session in your terminal."
âAdam DuVander, Founder, EveryDeveloper
"This book is excellent for beginners to Python and a great reference book for programmers who are well versed in programming. I'm happy to give this book 5 out of 5 stars!"
âGreg Walters, Full Circle Magazine
"This book is packed with fun and easy programs, I can confirm."
âBC Gain, @bcamerongain
Watch this book trailer created by the author Al Sweigart.
Teaching Python Podcast discussed the book.



