[BangPypers] help needed to understand an error message.

स्वक्ष vid at svaksha.com
Sat Mar 24 05:25:45 CET 2012


On Sat, Mar 24, 2012 at 03:10, Aloke Ghosh <akghosh3 at gmail.com> 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 .
> However the error indicated with "*^*"
> hints at quote at the end of the line.

You are right about the errors, capital "P" and "*"
On the console if you retry as below it should return only the
contents within quotes as output, like this:
>>> print "I like typing this."
I like typing this.

HTH,
-- 
॥ स्वक्ष ॥ http://svaksha.com


More information about the BangPypers mailing list