info-nowise info-nowise - 8 months ago 33
Python Question

Can't run Python from cmd line

I am a programming (and Python) novice. I am unable to run any python script in command prompt of my WinXP 64-bit laptop. I assigned the path and confirmed it by typing set path. I have Python32.
I get the following message:


File <”stdin”> , Line1
SyntaxError: Invalid syntax

Following is the script I tried:

message = "Hello, world!"


You should type this


at the dos/cmd prompt, not inside the Python Interpreter