Skip to content

1. Foreword

The PDF version 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,
  • database management MySQL,
  • network programming Tcp/ Ip,
  • 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, Vbscript, or developers accustomed to typed languages such as Java or C# who would be 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 effectively. 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 for whom this document "goes too fast" or is not explicit enough may prefer Gérard Swinnen’s in-depth tutorial [http://python.developpez.com/cours/TutoSwinnen/] or, more generally, the Python tutorials by developpez.com [http://python.developpez.com/cours]. The ultimate information can be found at URL [http://docs.python.org/].

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

The examples in this document are available at [http://tahe.ftp-developpez.com/fichiers-archive/python_exemples.zip]. They are provided as a Visual Studio 2010 solution, but the scripts can be used outside of this environment.

 

For further reading: