Python Programming

From Wikibooks, the open-content textbooks collection

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 Image:00%.svg Developing text Image:25%.svg Maturing text Image:50%.svg Developed text Image:75%.svg Comprehensive text: Image:100%.svg



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

Contents


[edit] Introduction

Overview
Getting Python
Setting it up
Interactive mode

[edit] 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

[edit] Python concepts

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

[edit] 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

[edit] 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

[edit] See also

[edit] External links

Personal tools