Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, http://www.python.org/ , and may be freely distributed.
When CivilizationTM IV (Firaxis Games, published by Take2) was announced, one of the most exciting features was that much of the scripting code will be in python, and the game data in XML. This tutorial attempts to teach you the basics of python programming that you could use with civIV. Of course, this tutorial is not limited to those who want to play a slow-paced turn-based strategy game.
NOTE: If you would like some Python development done, my company, Stochastic Technologies , is available for consulting. This tutorial is available as a short ebook . The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format.