Basic Python examples

Before you start using Python in NWare, try out some basic examples in the Python shell. When you are familiar with how these examples work, we recommend looking online for others, so you are comfortable with the syntax of a broader range of language concepts.

This section assumes you have installed Python 2.4.

In this section

Starting the Python shell

Printing hello world

Using basic variables

Creating an array and a dictionary and printing values

Looping through a predefined list

Looping using the xrange function

See also

What is Python?

Installing Python on your PC

Starting the Python shell

Printing hello world