Python
Python is very easy to learn and use,
one of the easiest of all programming languages.
and I'll let you absorb it through examples.
There are two traps, one mildly unusual,
the other severely annoying:
-
indentation in programs is
an important part of their structure;
-
division of integers is true integer division:
5/4 = 1, -3/2 = -2, 1/2 = 0.
It is this last that will cause much trouble.
Usually, write 1/2.0 or 1/float(2).
There
are a few other quirky features of the language.
You might want to skim quickly
one of the appendices to the manual for PiScript:
|