RE: syntax error in first-time user script

2017-03-25 Thread Deborah Swanson
john polo wrote, on March 25, 2017 2:45 PM > > I had a misconception of how the Python interpreter works. If > I have a > script, call it example.py, in order to run it, I shouldn't be in the > interpreter? In other words, I should be at the Windows > command prompt, > for example > > C:/tes

Re: syntax error in first-time user script

2017-03-25 Thread john polo
I had a misconception of how the Python interpreter works. If I have a script, call it example.py, in order to run it, I shouldn't be in the interpreter? In other words, I should be at the Windows command prompt, for example C:/test> python example.py and not >>> python example.py ? So, if

Re: syntax error in first-time user script

2017-03-24 Thread Terry Reedy
On 3/23/2017 9:57 PM, john polo wrote: If I use IDLE shell: "python comment.py" "SyntaxError: invalid syntax" IDLE's Shell runs your input with nearly identical results as with the standard interactive interpreter, including exceptions. I know I can open the file in the editor and use F5

Re: syntax error in first-time user script

2017-03-24 Thread john polo
On 3/24/2017 9:11 AM, Bob Gailer wrote: On Mar 24, 2017 4:53 AM, "john polo" > wrote: > > Greetings, > I am attempting to learn Python. I have no programming background. I'm on a computer with Windows 7. I checked the PATH in System Variables and Python and Python\S

Re: syntax error in first-time user script

2017-03-24 Thread Bob Gailer
On Mar 24, 2017 4:53 AM, "john polo" wrote: > > Greetings, > I am attempting to learn Python. I have no programming background. I'm on a computer with Windows 7. I checked the PATH in System Variables and Python and Python\Scripts are in the path. I have a book, Python for Biologists and it suppli

Re: syntax error in first-time user script

2017-03-24 Thread Peter Otten
john polo wrote: > Greetings, > I am attempting to learn Python. I have no programming background. I'm > on a computer with Windows 7. I checked the PATH in System Variables and > Python and Python\Scripts are in the path. I have a book, Python for > Biologists and it supplies example scripts, one