[Tutor] Any book to study Python

Brian van den Broek brian.van.den.broek at gmail.com
Mon Mar 19 14:40:40 CET 2012


On 19 Mar 2012 11:42, "Yan, Xianming" <Xianming.Yan at intercallapac.com>
wrote:
>
> I'm following http://docs.python.org/tutorial/interpreter.html to type in
the first script into python.
>
> According to the link, I typed below:
>
> >>> the_world_is_flat = 1
> >>> if the_world_is_flat:
> ...     print "Be careful not to fall off!"
>
> Then I get below output:
> File "<stdin>", line1
>  Print "dd"
>    ^
> IndentationError:expected an indented block

Xianming,

I see you solved your problem; I am glad.

But, a comment for future messages:

Be sure to copy and paste (as in, do not retype) your code and any output
that *that* code produces. The code you show cannot have produced the
output you show. If you retype or mix and match code and output, you make
it harder to help!

Best wishes,

Brian vdB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120319/5ca402dc/attachment.html>


More information about the Tutor mailing list