[Tutor] How to run a python script

Erol Gericke woodworm at cybersmart.co.za
Sat Feb 20 11:25:03 EST 2016

I want learn Python programming. Many years ago I taught myself BASIC so 
I have some programming experience.

I have  installed Python 2.7.11 and Notepad ++ on my Win 7 computer. I 
have also edited the PATH variable to include C:\Python27.

However I am unable to run any scripts.

When I type (into the COMMAND PROMPT window) python test.py or
python C:\python27\test.py      I get SyntaxError: invalid syntax

Until I solve this problem learning programming makes no sense.

Can you please help me, I would appreciate your help.

Thank you in advance,
Erol Gericke.
Somerse West. South Africa.

More information about the Tutor mailing list