加载中...
  1. Home
  2. Computing & Technology
  3. Python

Getting Started With Python

These tutorials take you from beginning to program to being productive with Python in the shortest time possible.
  1. Programming Glossary
  2. Python Editors (4)

Executing a Python Program: Shell or File?

Programming is pointless if you cannot run, or execute, the program you write. Executing a Python program tells the Python interpreter to convert the Python program into something the computer can read and act upon. There are two ways to do this: using a Python shell and calling the Python interpreter with a "bang" line. The how-to's of both are addressed here.

Choosing a Text Editor for Python Programming

Before you can start programming in Python, you must ensure you have the right equipment. In addition to having Python installed, you will need a text editor. Here I offer some suggestions on choosing one that you will meet your needs.

What is Python?

This series of pages discusses what Python is, why one would want to use it, and how it differs from other programming languages.

Transitioning from 2.x to 3.0

With the release of Python 3.0, the number of projects that are built on a 3.x interpreter and that break compatibility with the 2.x series and before will only increase. The points of incompatiblity vary in importance, but your 2.x coding style is almost guaranteed to be incompatible on some level. Here is a series of helps to ease your transition into the world of Python 3.0.

"Merry Christmas!": A Quick Tour of Python

The purpose of this tutorial is to take a simple program and build upon it in silly ways to illustrate the various elements of the Python language. You would never write a program like this in real life (except to illustrate a programming language on About.com), but you certainly will use the concepts illustrated here in 90% of the programs you write.

Python Tutorials For Beginners

This series of tutorials is intended to help anyone learn to program in Python. If you are new to computers, however, you may benefit from the absolute beginner's tutorial: How a Computer Looks at Your Program.

How a Computer "Reads" a Program

Are you new to the world of computing? If so, this tutorial is for you. It is not about Python specifically. Instead, it addresses the basic parts of any programming language and how the computer "sees" them. Understanding how the computer "reads" what you write will help you to write better code and to find problems faster.

Execution: The Shell vs The File

In Python, there are two ways to create a program: the Python shell and the text file. This article offers a brief overview of each and discusses their advantages and disadvantages.

The Zen of Python

While Python is incredibly intuitive, many people do not comprehend the basics of Python development. For them, I include here the "Zen of Python."

Beginning Python: Exceptions, Errors, and Warnings

This tutorial is part of a series designed to help you learn to program in Python. This tutorial looks specifically at the errors, exceptions, and warnings within Python.

Python Encodings

Python's encoding functions offer a means of encoding ASCII in Unicode and vice versa. Any program that might be used on the internet someday will need to work with multiple character sets. Here is how.

"Hello, World!": A Quick Tour of Python

In this tutorial, we take a simple program and build upon it to illustrate the various elements of the Python language. You would never write a program like this in real life, but you certainly will use the concepts illustrated here in 90% of the programs you write. If you find this tutorial hard to follow, I encourage you to read "Beginning Python" instead.

Python 2.5's 'with' Statement

One of the new features that was released with Python 2.5 last month is the 'with' statement. For those of you who are used to Python's try...except statement, you may find this to be the biggest boon of upgrading.

Python Decorators, Methods, and Functions

Decorators help the Python program with maintaining and extending Python programs.

Producing Python Documentation With Docstrings

Python has built-in documentation features that are easy to use. Here is how to write self-documenting functions.

Using Lambda Calculus in Python

Lambda calculus can be used to design just about any kind of function you might need. Here is how to use it in lieu of pseudo-code to describe your functions quickly.
  1. Home
  2. Computing & Technology
  3. Python
  4. Beginning Python

©2011 About.com. All rights reserved. 

A part of The New York Times Company.