info-nowise info-nowise - 1 year ago 101
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!"

Answer Source

You should type this


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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download