[Tutor] New to Python - print function - invalid syntax

Danny Yoo dyoo at hashcollision.org
Mon Aug 4 22:38:29 CEST 2014


> > but I'm running into a syntax error when running one of the unmodified
> > programs.  On line 14, which reads:
> >
> > print("Here", end=" ")
> >
> > I'm receiving a syntax error which points to the end parameter.

I'd like to also support Joel's suggestion to provide detailed output of
the error message.  It will help.

> > difference between the version of Python I'm using (3.4.1) and that
which
> > was in use at the time the book was written (3.1.x) that is responsible
for
> > this error.

Just to double check: how are you confirming what version of Python you're
using?

Best of wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140804/531aa40e/attachment.html>


More information about the Tutor mailing list