Best-selling author Al Sweigart shows you how to easily build over 80 fun programs with minimal code and maximum creativity.
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 pro- grams, 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!
- Title
- Big Book of Small Python Programming
- Subtitle
- 81 Easy Practice Programs
- Publisher
- No Starch Press
- Author(s)
- Al Sweigart
- Published
- 2021-06-27
- Edition
- 1
- Format
- eBook (pdf, epub, mobi)
- Pages
- 536
- Language
- English
- ISBN-10
- 1718501242
- ISBN-13
- 9781718501249
- License
- Read online for free
- Book Homepage
- Free eBook, Errata, Code, Solutions, etc.
Title Page Copyright About the Author Introduction Project #1: Bagels The Program in Action How It Works Exploring the Program Project #2: Birthday Paradox The Program in Action How It Works Exploring the Program Project #3: Bitmap Message The Program in Action How It Works Exploring the Program Project #4: Blackjack The Program in Action How It Works Exploring the Program Project #5: Bouncing DVD Logo The Program in Action How It Works Exploring the Program Project #6: Caesar Cipher The Program in Action How It Works Exploring the Program Project #7: Caesar Hacker The Program in Action How It Works Exploring the Program Project #8: Calendar Maker The Program in Action How It Works Exploring the Program Project #9: Carrot in a Box The Program in Action How It Works Exploring the Program Project #10: Cho-Han The Program in Action How It Works Exploring the Program Project #11: Clickbait Headline Generator The Program in Action How It Works Exploring the Program Project #12: Collatz Sequence The Program in Action How It Works Exploring the Program Project #13: Conway’s Game of Life The Program in Action How It Works Exploring the Program Project #14: Countdown The Program in Action How It Works Exploring the Program Project #15: Deep Cave The Program in Action How It Works Exploring the Program Project #16: Diamonds The Program in Action How It Works Exploring the Program Project #17: Dice Math The Program in Action How It Works Exploring the Program Project #18: Dice Roller The Program in Action How It Works Exploring the Program Project #19: Digital Clock The Program in Action How It Works Exploring the Program Project #20: Digital Stream The Program in Action How It Works Exploring the Program Project #21: DNA Visualization The Program in Action How It Works Exploring the Program Project #22: Ducklings The Program in Action How It Works Exploring the Program Project #23: Etching Drawer The Program in Action How It Works Exploring the Program Project #24: Factor Finder The Program in Action How It Works Exploring the Program Project #25: Fast Draw The Program in Action How It Works Exploring the Program Project #26: Fibonacci The Program in Action How It Works Exploring the Program Project #27: Fish Tank The Program in Action How It Works Exploring the Program Project #28: Flooder The Program in Action How It Works Exploring the Program Project #29: Forest Fire Sim The Program in Action How It Works Exploring the Program Project #30: Four in a Row The Program in Action How It Works Exploring the Program Project #31: Guess the Number The Program in Action How It Works Exploring the Program Project #32: Gullible The Program in Action How It Works Exploring the Program Project #33: Hacking Minigame The Program in Action How It Works Exploring the Program Project #34: Hangman and Guillotine The Program in Action How It Works Exploring the Program Project #35: Hex Grid The Program in Action How It Works Exploring the Program Project #36: Hourglass The Program in Action How It Works Exploring the Program Project #37: Hungry Robots The Program in Action How It Works Exploring the Program Project #38: J’Accuse! The Program in Action How It Works Exploring the Program Project #39: Langton’s Ant The Program in Action How It Works Exploring the Program Project #40: Leetspeak The Program in Action How It Works Exploring the Program Project #41: Lucky Stars The Program in Action How It Works Exploring the Program Project #42: Magic Fortune Ball The Program in Action How It Works Exploring the Program Project #43: Mancala The Program in Action How It Works Exploring the Program Project #44: Maze Runner 2D The Program in Action How It Works Exploring the Program Project #45: Maze Runner 3D The Program in Action How It Works Exploring the Program Project #46: Million Dice Roll Statistics Simulator The Program in Action How It Works Exploring the Program Project #47: Mondrian Art Generator The Program in Action How It Works Exploring the Program Project #48: Monty Hall Problem The Program in Action How It Works Exploring the Program Project #49: Multiplication Table The Program in Action How It Works Exploring the Program Project #50: Ninety-Nine Bottles The Program in Action How It Works Exploring the Program Project #51: niNety-nniinE BoOttels The Program in Action How It Works Exploring the Program Project #52: Numeral System Counters The Program in Action How It Works Exploring the Program Project #53: Periodic Table of the Elements The Program in Action How It Works Exploring the Program Project #54: Pig Latin The Program in Action How It Works Exploring the Program Project #55: Powerball Lottery The Program in Action How It Works Exploring the Program Project #56: Prime Numbers The Program in Action How It Works Exploring the Program Project #57: Progress Bar The Program in Action How It Works Exploring the Program Project #58: Rainbow The Program in Action How It Works Exploring the Program Project #59: Rock Paper Scissors The Program in Action How It Works Exploring the Program Project #60: Rock Paper Scissors (Always-Win Version) The Program in Action How It Works Exploring the Program Project #61: ROT13 Cipher The Program in Action How It Works Exploring the Program Project #62: Rotating Cube The Program in Action How It Works Exploring the Program Project #63: Royal Game of Ur The Program in Action How It Works Exploring the Program Project #64: Seven-Segment Display Module The Program in Action How It Works Exploring the Program Project #65: Shining Carpet The Program in Action How It Works Exploring the Program Project #66: Simple Substitution Cipher The Program in Action How It Works Exploring the Program Project #67: Sine Message The Program in Action How It Works Exploring the Program Project #68: Sliding Tile Puzzle The Program in Action How It Works Exploring the Program Project #69: Snail Race The Program in Action How It Works Exploring the Program Project #70: Soroban Japanese Abacus The Program in Action How It Works Exploring the Program Project #71: Sound Mimic The Program in Action How It Works Exploring the Program Project #72: sPoNgEcAsE tHe PrOgRaM iN AcTiOn hOw It WoRkS ExPloRiNg tHe PrOgRaM Project #73: Sudoku Puzzle The Program in Action How It Works Exploring the Program Project #74: Text-to-Speech Talker The Program in Action How It Works Exploring the Program Project #75: Three-Card Monte The Program in Action How It Works Exploring the Program Project #76: Tic-Tac-Toe The Program in Action How It Works Exploring the Program Project #77: Tower of Hanoi The Program in Action How It Works Exploring the Program Project #78: Trick Questions The Program in Action How It Works Exploring the Program Project #79: Twenty Forty-Eight The Program in Action How It Works Exploring the Program Project #80: Vigenère Cipher The Program in Action How It Works Exploring the Program Project #81: Water Bucket Puzzle The Program in Action How It Works Exploring the Program Project A: Tag Index Project B: Character Map Using the chr() and ord() Functions Table of Code Points