Python Programming

This page is brought to you by Wikimedia Laboratories
Jump to: navigation, search


Python is a general-purpose interpreted programming language. It currently has distributions available for Microsoft Windows, Apple Mac OS X, GNU/Linux, BSD, and many other platforms. There are currently three major implementations: the standard implementation written in C, Jython written in Java, and IronPython written in C# for the MS .NET environment.


Wikibook Development Stages
Sparse text 00%.svg Developing text 25%.svg Maturing text 50%.svg Developed text 75%.svg Comprehensive text: 100%.svg



If you have questions related to Python programming, ask at the Q&A.

Contents


Introduction

Overview
Getting Python
Setting it up
Interactive mode

Learning to program in Python

Creating Python programs
Variables and Strings
Basic Math
Arrays
Decision Control
Conditional Statements
Loops
Source Documentation and Comments
User Interface and Interaction
Modules and how to use them See section below.
Creating and Handling Files
Handling Text
Errors
Namespaces
Object-oriented programming
Databases
Web interaction
Network interaction
Game Programming in Python
Tips and tricks

Python concepts

Basic syntax
Data types
Numbers
Strings
Lists
Tuples
Dictionaries
Sets
Operators
Flow control
Functions
Scoping
Exceptions
Input and output
Modules
Classes
MetaClasses

Rocking the Python (Modules)

Regular Expression
Graphical User Interfaces in Python
Game Programming in Python
Socket programming
Files (I/O)
Databases
Extracting info from web pages
Threading
Extending with C
Extending with C++
Extending with Pyrex
Extending with ctypes
WSGI web programming
XML Tools

Notes

The latest documentation for the standard python libraries and modules can always be found at The Python.org documents section. This documentation includes the official Tutorial.

The following articles are Python adaptations from articles of the Computer programming book. The texts in these articles are language neutral but the examples are all Python.


List of authors

See also

External links

Personal tools
Namespaces

Variants
Actions
Navigation
FlaggedRevs
Print/export
Toolbox
In other languages