On Tuesday, January 3, 2017 at 8:54:55 PM UTC-8, saad khalid wrote:
>
> Hey everyone:
>
> I would like to use the print function without it creating a new line.
> From what I remember, I could do print("whatever I want", end=""), and that
> should make it not create a new line. However, when I do this, I get an
> error saying
>
> print("hi", end = "")
> ^
> SyntaxError: invalid syntax
>
> That's python3. You can get that behaviour in python2 (and hence,
presently, sage) by using
from __future__ import print_function
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.