> And what this thing does ( I see it in almost every code example) : > if __name__ == '__main__': > main() This is what runs when you run the program directly. the program's __name__ always equals "__main__" when it's the top most program and not some sort of module being imported into another program. -- Rene