Re: [Tutor] How to run a python script

2016-02-21 Thread Chad Perry
This is the shabang for Python http://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take Sincerely, Chad Perry cperry...@hotmail.com 512.961.0291 > On Feb 21, 2016, at 3:11 AM, Chris Warrick wrote: > > Forwarding to mailing list, please use

Re: [Tutor] How to run a python script

2016-02-21 Thread Chad Perry
Can you share the knowledge on what you did. I love Python it's easy...to use most of the time Sincerely, Chad Perry cperry...@hotmail.com 512.961.0291 > On Feb 21, 2016, at 3:11 AM, Chris Warrick wrote: > > Forwarding to mailing list, please use Reply All in the future. > >> On 21 February

Re: [Tutor] How to run a python script

2016-02-21 Thread Erol Gericke
Thanks again Erol On 2016/02/21 11:10 AM, Chris Warrick wrote: Forwarding to mailing list, please use Reply All in the future. On 21 February 2016 at 09:48, Erol Gericke wrote: Hi Chris, Thanks for your prompt reply, the problem has been solved! I was using the 'python' terminal not the 'DOS

Re: [Tutor] How to run a python script

2016-02-21 Thread Chris Warrick
Forwarding to mailing list, please use Reply All in the future. On 21 February 2016 at 09:48, Erol Gericke wrote: > Hi Chris, > > Thanks for your prompt reply, the problem has been solved! > I was using the 'python' terminal not the 'DOS' terminal. > > I have created a new directory to hold the

Re: [Tutor] How to run a python script

2016-02-21 Thread Alan Gauld
On 21/02/16 00:36, Chad Perry wrote: > What version of Python are you using? Have you tried an > apt-get -y update > yum -y update Since the OP appears to be running Windows I doubt if that will help. In fact, I doubt it would help with a syntax error on Linux either. -- Alan G Author of the L

Re: [Tutor] How to run a python script

2016-02-21 Thread Chad Perry
ython.org> Subject: Re: [Tutor] How to run a python script On 20/02/16 16:25, Erol Gericke wrote: > 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 As Ch

Re: [Tutor] How to run a python script

2016-02-20 Thread Alan Gauld
On 20/02/16 16:25, Erol Gericke wrote: > 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 As Chris has hinted it sounds like you are running the script at the wrong comma

Re: [Tutor] How to run a python script

2016-02-20 Thread Chris Warrick
On 20 February 2016 at 17:25, Erol Gericke wrote: > 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.

[Tutor] How to run a python script

2016-02-20 Thread Erol Gericke
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 (