I just downloaded and installed ActivePython on my windows PC (XP).
I can bring up the editor and can write very beginner lines of code in the editor and save and run the program.
However, when I create any function the interpreter says there is an error, no matter how trivial the function is.
for example
-def X(a,b):
a+b
I put the dash in there to show that the interpreter thinks there is an error.
I also can not create multiline dictionaries such as
-x = {"a":"c" , \
"b":"d", \
}
Question: why does my interpreter think these are errors when this code, and code very similar to it, are copied directly from manuals and other help for beginner documents.
AND: why does the interpreter appear to be so dumb? it reports an error on the line, but I can not find out why it thinks there is an error there. In all the help documentation I have read, there is nothing that says what the dashes are. I am assuming these indicate errors, but I dont really know. I certainly can not run a program that contains these. In all the help references I have read, none of them say anything about how to use the interpreter, they just say that this is an interpreted language.
I have used other interpreted languages that tell me what the problem might be, perhaps I was spoiled.
Thanks for the help.