Looping using the xrange function

See also

Starting the Python shell

Printing hello world

Using basic variables

Creating an array and a dictionary and printing values

Looping through a predefined list