Skip to content

1. Foreword

The PDF of the document is available |HERE|.

The examples in the document are available |HERE|.

This document provides a list of Python scripts in various fields:

  • the fundamentals of the language,
  • MySQL database management,
  • TCP/IP network programming,
  • web programming,
  • three-tier architectures and interface-based programming.

This is not a Python course but a collection of examples intended for developers who have already used a scripting language such as Perl, PHP, or VBScript, or for developers accustomed to typed languages such as Java or C# who are interested in discovering an object-oriented scripting language. This document is not suitable for readers with little or no programming experience.

Nor is this document a collection of "best practices." Experienced developers may find that some of the code could be written more elegantly. The sole purpose of this document is to provide examples for someone wishing to quickly get started with the Python language. They can then deepen their learning with other resources.

Those who find this document "too fast-paced" or not explicit enough may prefer Gérard Swinnen’s in-depth tutorial [http://python.developpez.com/cours/TutoSwinnen/] or, more generally, the Python tutorials on developpez.com [http://python.developpez.com/cours]. The definitive information can be found at the URL [http://docs.python.org/].

The scripts are commented, and their console output is reproduced. Additional explanations are sometimes provided. This document requires active reading: to understand a script, you must read its code, comments, and console output.

The examples in this document are available |HERE|. They are provided as a Visual Studio 2010 solution, but the scripts can be used outside of this environment.

 

For further reading: