Why is Python 3.1.3 in the header listed as a syntax error?

Posted by squashua on Stack Overflow See other posts from Stack Overflow or by squashua
Published on 2011-01-15T14:50:04Z Indexed on 2011/01/15 14:53 UTC
Read the original article Hit count: 134

Filed under:
|
|

Hi,

I'm a newbie programmer so I'll do my best to clearly ask my question. I'm running Python scripts in Mac 10.6.5 and now trying to write and save to a text file (following instructions in HeadsUp Python book). Whenever I hit function+F5 (as instructed) I get the same "invalid syntax" error and Idle highlights the "1" in "Python 3.1.3" of the header. Here's the header to which I'm referring:

Python 3.1.3 (r313:86882M, Nov 30 2010, 09:55:56) [GCC 4.0.1 (Apple Inc. build 5494)] on darwin Type "copyright", "credits" or "license()" for more information.

Extremely frustrating. I've checked and rechecked the code but this doesn't seem to be code related because the "syntax error" is in regards to the header text that posts in every Idle/Python session. Help anyone?

Thanks,

Squash

© Stack Overflow or respective owner

Related posts about syntax

Related posts about invalid