On Apr 14, 6:51 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On 4/14/07, mabshoff <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > when I paste the following command into SAGE > > > for i in range(1,3): > > print(str(i)) > > print("SAGE will never get here") > > You have to put a blank line after the second print statement: > Thanks, works for me. Michael > for i in range(1,3): > print(str(i)) > > print("SAGE will never get here") > > rank4:~ was$ sage > ---------------------------------------------------------------------- > | SAGE Version 2.4.2, Release Date: 2007-04-12 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > > sage: for i in range(1,3): > ....: print(str(i)) > ....: > 1 > 2 > sage: print("SAGE will never get here") > SAGE will never get here > sage: > > William > > > > > > > I get the following parse error: > > > sage: for i in range(1,3): > > ....: print(str(i)) > > ....: print("SAGE will never get here") > > ------------------------------------------------------------ > > File "<ipython console>", line 3 > > print("SAGE will never get here") > > ^ > > <type 'exceptions.SyntaxError'>: invalid syntax > > > sage: > > > Cheers, > > > Michael > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://www.williamstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---