On Jan 3, 2017, at 20:54 , 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

I believe that the Python syntax is
  print "hi",
(at least for Python 2; not sure about v. 3).

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
-----------
If you don't know where you're going,
you might wind up someplace else.
  - Yogi Berra
--

-- 
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.

Reply via email to