To perform calculations with pDynamo, users write Python programs that employ the packages of the pDynamo library. Python is a dynamic, interactive, open-source scripting language with a very active user community. Comprehensive documentation, including tutorials, is available on the Python web site.
The best way to learn Python is to write programs. A simple example is as follows:
To run the program, the Python interpreter must be invoked. There are a number of ways to do this but one of the simplest is to open a terminal window (on Linux and MAC OS-X machines) and enter
Being able to type programs directly into the Python interpreter
is very useful for trying things out and for short programs, but becomes
tedious for more complicated tasks. In these cases, it is easiest to
create the program in a text file and then invoke Python with the name
of the text file as an argument. The above program appears in the file