<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div class="yahoo_quoted" style="display: block;"><div><font face="Arial" size="2">On Thursday, 30 January 2014, 21:27, Peter Clark <artomishka@yahoo.co.uk> wrote:<br> </font></div><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10pt;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt;">   <div class="y_msg_container"><div id="yiv2650259391"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10pt; background-color: rgb(255, 255, 255);"><div><span>Thank-you.  Please no-one reply to this post.  I just want to put on record my complete p-offed-ness, that having
 spent 10 days sorting out and hypertexting a library of documentation, I now have to start all over.</span></div><div><span><br clear="none"></span></div><div><span>Please do not respond, I am sure it is all my fault.</span></div><div><span><br clear="none"></span></div><div><span>Please do not respond - it will only prolong the agony.</span></div><div><span><br clear="none"></span></div><div><span>Long live the Norwegian blue.</span></div><div><span><br clear="none"></span></div><div><span>peter</span></div><div class="yiv2650259391yqt4158283403" id="yiv2650259391yqt22330"><div class="yiv2650259391yahoo_quoted" style="display: block;"> <br clear="none"> <br clear="none"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2">
 On Thursday, 30 January 2014, 17:31, Zachary Ware <zachary.ware+pylist@gmail.com> wrote:<br clear="none"> </font> </div>  <div class="yiv2650259391y_msg_container">Please reply to the list, rather than to me directly.  You can use<br clear="none">"Reply to List" if you have that option, or "Reply to All" to make<br clear="none">sure you include the list.<br clear="none"><br clear="none">On Thu, Jan 30, 2014 at 8:52 AM, Peter Clark <<a href="mailto:artomishka@yahoo.co.uk" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:artomishka@yahoo.co.uk">artomishka@yahoo.co.uk</a>> wrote:<br clear="none">> I do not know how to dump the screen - it will not let me select anything<br clear="none">> with the mouse cursor, so here is my (typed in) reproduction:<br clear="none"><br clear="none">Since it looks like you're probably using Windows Command
 Prompt, you<br clear="none">can right click anywhere in that window, click "Mark", and highlight a<br clear="none">rectangle containing what you want and hit the Enter key.  Note that<br clear="none">it doesn't go by lines, only the rectangle you highlight will be<br clear="none">copied! (Yes, it is horribly annoying :)<br clear="none"><br clear="none">Thank you for taking the time to type it all out!<br clear="none"><br clear="none">> Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40)  [MSC v.1600 32<br clear="none">> bit (In<br clear="none">> tel) on win32<br clear="none">> Type "help", "copyright", "credits" or "license" for more information.<br clear="none">>>>> print "xyz"<br clear="none">>      File "(stdin)", line 1<br clear="none">>         print "xyz"<br clear="none">>                        ^<br
 clear="none">> SyntaxError: invalid syntax<br clear="none"><br clear="none">This right here confirms what I thought: you're using Python 3 with a<br clear="none">Python 2 tutorial.  'print' in Python 3 is a function just like<br clear="none">'input' or 'open', so you have to use it like this instead:<br clear="none"><br clear="none">   >>> print("xyz")<br clear="none">   xyz<br clear="none"><br clear="none"><br clear="none"><br clear="none">>>>> print '''xyz"  . . .'''<br clear="none">>      File "(stdin)", line 1<br clear="none">>         print '''xyz'''<br clear="none">>                          ^<br clear="none">> SyntaxError: invalid syntax<br clear="none">>>>> print '''xyz"  . . .''                    (note - not appearing on<br
 clear="none">>>>> screen - this is 2 single quotes)<br clear="none">> ... '''<br clear="none">>     File "(stdin)", line 2<br clear="none">>         '''<br clear="none">>          ^<br clear="none">> SyntaxError: invalid syntax<br clear="none">>>>><br clear="none">><br clear="none">> I do not see anywhere a definition of which version the tutorial relates to,<br clear="none">> but I downloaded it from the Python site on 19th January 2014.<br clear="none"><br clear="none">The Python website provides docs for every current version of Python,<br clear="none">and the community is currently in the midst of a very long transition<br clear="none">from version 2.7 to 3.x, so both versions are considered "current".<br clear="none">In fact, most links to the Python documentation will link to the 2.7<br clear="none">version to maintain compatibility.  Here's
 a link to the Python 3<br clear="none">version of the tutorial, which should work much better for you!<br clear="none"><a href="http://docs.python.org/3/tutorial/" target="_blank" rel="nofollow" shape="rect">http://docs.python.org/3/tutorial/</a><br clear="none"><br clear="none">You can also find the docs in your Python installation: find Python<br clear="none">3.3 in your start menu, and choose "Python Manuals".  This will open<br clear="none">the same docs as are found online, in standard Windows help file<br clear="none">format.  Click the "Tutorial" link on the first page of that, and you<br clear="none">should have the right tutorial to work from.<br clear="none"><br clear="none">Hope this helps, and welcome to Python!<br clear="none"><br clear="none">--<br clear="none"><br clear="none">Zach<div class="yiv2650259391yqt5836400566" id="yiv2650259391yqtfd31883"><br clear="none"><br clear="none">><br clear="none">> peter.<br
 clear="none">><br clear="none">> On Thursday,
 30 January 2014, 16:13, Zachary Ware<br clear="none">> <zachary.ware+<a href="mailto:pylist@gmail.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:pylist@gmail.com">pylist@gmail.com</a>> wrote:<br clear="none">><br clear="none">> On Thu, Jan 30, 2014 at 7:26 AM, Peter Clark <<a href="mailto:artomishka@yahoo.co.uk" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:artomishka@yahoo.co.uk">artomishka@yahoo.co.uk</a>> wrote:<br clear="none">><br clear="none">>> There is probably an easy solution to this – but I have not found it.<br clear="none">>><br clear="none">>> Trying to terminate a literal in a print statement (from the tutorial).<br clear="none">>><br clear="none">>> The literal should be enclosed in double quotes “ “<br clear="none">>><br clear="none">>> the initial double quote seems to be OK (if I use a different character it<br clear="none">>>
 flags it) but the ending is flagged as invalid syntax. 
 I have tried<br clear="none">>> changing my keyboard from UK to USA, without any effect, and tried adding<br clear="none">>> a<br clear="none">>> space after the final double quote,<br clear="none">><br clear="none">><br clear="none">> Which version of Python are you using?  Make sure you're using the<br clear="none">> same version of interpreter and tutorial.  'print' was one of the big<br clear="none">> changes between Python 2 and Python 3 (in Python 2 it was a statement,<br clear="none">> while in Python 3 it is a function), so a tutorial written with Python<br clear="none">> 2 in mind will have some issues if you're using Python 3.<br clear="none">><br clear="none">> If you've already checked that, try copying and pasting your entire<br clear="none">> interpreter session into a reply here, and we'll be more able to<br clear="none">> figure out what's going on.<br clear="none">><br
 clear="none">> Hope this helps,<br clear="none">><br clear="none">> --<br clear="none">> Zach<br clear="none">></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div> </div></div></div><br><br></div>  </div> </div>  </div><div> Hi, I have just started trying to use python version 3, under windows XP, I have got a simple script (attached) to run as I want in Interpreter mode.  It is saved as a .py file. If I double click on the file the python screen opens and appears to be waiting for input but the cursor just sits there without doing anything but blink. I haven't found any .py program which does anything except open and close the python window, or occasionally accepting input with no response.</div><div><br></div><div>I would like to be able to save and run scripts as my usual method of acquiring a new language, but getting python to run a saved script has me beat.  I assume there is something I am
 missing, or have missed.</div><div><br></div><div>As an aside, does the fact that python runs at all indicate that I have C installed?</div><div><br></div><div>Thank you in advance for any assistance.</div><div><br></div><div>peter clark.</div></div></body></html>