Category: For Children

Invent Your Own Computer Games with Python

  • Author: Al Sweigart
  • Format: online HTML
  • Price: free (printed edition available on Amazon)

Invent Your Own Computer Games with Python is a free book that teaches you how to program in the Python programming language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the example. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi.

It was written to be understandable by kids as young as 10 to 12 years old, although it is great for anyone of any age who has never programmed before.

This fourth edition has revised and expanded content, including using the Pygame library to make 2D games with graphics, animation, and sound.

Chapters include:

  • Introduction
  • Chapter 1 – The Interactive Shell
  • Chapter 2 – Writing Programs
  • Chapter 3 – Guess the Number
  • Chapter 4 – A Joke-Telling Program
  • Chapter 5 – Dragon Realm
  • Chapter 6 – Using the Debugger
  • Chapter 7 – Designing Hangman with Flowcharts
  • Chapter 8 – Writing the Hangman Code
  • Chapter 9 – Extending Hangman
  • Chapter 10 – Tic-Tac-Toe
  • Chapter 11 – The Bagels Deduction Game
  • Chapter 12 – The Cartesian Coordinate System
  • Chapter 13 – Sonar Treasure Hunt
  • Chapter 14 – Caesar Cipher
  • Chapter 15 – The Reversegam Game
  • Chapter 16 – Reversegam AI Simulation
  • Chapter 17 – Creating Graphics
  • Chapter 18 – Animating Graphics
  • Chapter 19 – Collision Detection
  • Chapter 20 – Using Sounds And Images
  • Chapter 21 – A Dodger Game with Sounds and Images

Read: Invent Your Own Computer Games with Python

Buy print edition

Snake Wrangling for Kids: Learning to Program with Python

  • Author: Jason R. Briggs
  • Format: PDF
  • Price: free

Perhaps one of the best beginner books written on Python, designed for teaching kids ages 8 and older how to program, using Python 2.7.

This one is meant to be printed out and stapled together and given to your child as a gift. It comes in 3 different flavors (Mac, Linux, Windows).

Note: All PDF downloads have been depreciated by the author since the publication of the printed edition, Python for Kids, but updated versions are maintained and made available through a 3rd party, on Github, due to the original book’s generous Creative Commons (CC-BY-NC-SA) license.

The prebuilt PDF files are based on the original author’s Python 3 version of the book, and has been edited to work with Python 2.7. Please disregard anything you may read in the book’s preface about downloading Python 3. You need to get Python 2.7 for this version of the book.

Contents include:

  • Not all snakes will squish you
  • A Few Words About Language
  • The Order of Non-venomous Constricting Serpentes
  • Your First Python program
  • Your Second Python program. . .the same again?
  • multiplied by 3.57 equals
  • Use of brackets and “Order of Operations”
  • There’s nothing so fickle as a variable
  • Using Variable
  • A Piece of String?
  • Tricks with Strings
  • Not quite a shopping list
  • Tuples and Lists
  • Things to try
  • Turtles, and other slow moving creatures
  • Things to try
  • How to ask a question
  • Do this. . . or ELSE!!!
  • Do this. . . or do this. . . or do this. . . or ELSE!!!
  • Combining conditions
  • Emptiness
  • What’s the difference. . .?
  • Again and again
  • When is a block not square?
  • While we’re talking about looping
  • Things to try
  • Sort of like recycling
  • Bits and Pieces
  • Modules
  • Things to try
  • A short chapter about Files
  • Turtles galore
  • Colouring in
  • Darkness
  • Filling things
  • Things to try
  • A bit graphic
  • Quick Draw
  • Simple Drawing
  • Drawing Boxes
  • Drawing Arcs
  • Drawing Ovals
  • Drawing Polygons
  • Drawing Images
  • Basic Animation
  • Reacting to events
  • Where to go from here
  • Python Keywords
  • Built-in Functions
  • A Few Python Modules
  • Answers to “Things to try”

Get the book: Snake Wrangling for Kids (Mac)

Get the book: Snake Wrangling for Kids (Windows)

Get the book: Snake Wrangling for Kids (Linux)

Buy latest printed edition (paid link)

Download Python 2.7

As an Amazon Associate I earn from qualifying purchases made through Amazon links appearing on this website.