Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22111 > unrolled thread

Re: Help needed to understand the error message

Started byMRAB <python@mrabarnett.plus.com>
First post2012-03-24 04:00 +0000
Last post2012-03-24 04:00 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Help needed to understand the error message MRAB <python@mrabarnett.plus.com> - 2012-03-24 04:00 +0000

#22111 — Re: Help needed to understand the error message

FromMRAB <python@mrabarnett.plus.com>
Date2012-03-24 04:00 +0000
SubjectRe: Help needed to understand the error message
Message-ID<mailman.950.1332561654.3037.python-list@python.org>
On 24/03/2012 03:37, Aloke Ghosh wrote:
> Hi,
> I am learning Python and do not have programming experience.
> I was following an exercise from
> http://learnpythonthehardway.org/book/ex2.html
> and made a mistake in entry :
>
> *Print"I like typing this."*
>
> and got the following error message:
>
> *In [2]: Print"I like typing this."*
> *------------------------------------------------------------*
> *   File "<ipython console>", line 1*
> *     Print"I like typing this."*
> *                                        ^*
> *SyntaxError: invalid syntax*
>
> I feel the error is in Capital P in print .

Correct. (I'm assuming that you're using Python 2; Python 3 is a little
different.)

> However the error indicated with "*^*"
> hints at quote at the end of the line.
>
> *Can any one please help me understand this.*
>
It will tell you approximately where the error is, but, as in this
example, the actual error may be a little earlier.

It tries to be helpful, but remember that it isn't intelligent! :-)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web