Getting started with Python (part 3 – for programmers)

In this tutorial, I’m going to go over writing your first Python program for C style language developers.

In most C style languages, a program starts execution in a main function. Python is a little different. To allow Python programs to act either as runnable programs, or as modules (similar to a class library), there’s a special way that you call the main function (source). In fact, it doesn’t have to be called main at all; you can name it whatever you want.

Continue reading