Teach yourself how to program by making computer games!

"Invent Your Own Computer Games with Python" is a free e-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.

IYOCGwP ("eye-yawk-gwip") was written to be understandable by 10 to 12 year olds, although it is great for anyone of any age who has never programmed before.

Quick Download Links

Python is the new BASIC

I learned how to program with a book similar to this one when I was 9 years old. That book covered games programming in the BASIC language. Python is a much more modern language that makes programming even easier. At the same time, Python is a serious language that is used by companies and organizations such as Google, NASA, Industrial Light and Magic, and many others.

Unfortunately, BASIC is not nearly as widespread as it once was, so it's hard to find materials for kids to teach themselves programming. There are many software "game creation kits" that are simple to use, but do not teach real programming languages and are limited to making only a few specific types of games. IYOCGwP is designed to teach real programming in Python. Python has a very gentle learning curve (moreso than BASIC) and has a large online community that contributes to it.

Guiding Principles

Start reading it now, on the web, for free!

Have something to say?

Leave a comment on the blog page for this book.

You can email the author at or use the forum.

Other programming guides for kids:

Here are some other free resources to learn programming (in Python and other languages):

IYOCGwP is free to copy and distribute under a Creative Commons license.

Copyright 2008 © by Albert Sweigart
"Invent Your Own Computer Games with Python" is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.