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. That is what it was written for, but is perfectly useful to any person with no programming knowledge at all, who wants to learn python. But what makes this tutorial unique, is that it is written for beginners, by a beginner.
Number | Name |
Installing Python | |
Very Simple Programs | |
Variables, and Programs in a Script | |
Loops and Conditionals | |
Functions | |
Tuples, Lists, and Dictionaries | |
The for loop | |
Classes | |
Importing Modules | |
File I/O | |
Error Handling |