I am trying to define a basic function in python but I always get the following error when I run a simple test program;
>>> pyth_test(1, 2) Traceba
It would help if you showed the code you are using for the simple test program. Put directly into the interpreter this seems to work.
>>> def pyth_test (x1, x2): ... print x1 + x2 ... >>> pyth_test(1, 2) 3 >>>