Interactive mode under DOS?
lie.1296 at gmail.com
Sun Oct 24 12:21:07 CEST 2010
On 10/24/10 21:37, huisky wrote:
> I'm trying to use the interactive mode under DOS for Python 2.7. As a
> newbie, I do NOT know what is the following problem:
>>>> if world_is_flat:
> .. . . print "be carefule to be not fall out!"
> File "<stdin>", line 2
> print "be carefule to be not fall out!"
> IndenatationError : expected an idented block
> Enybody knows how to fix this simple issue?
Python is indentation-sensitive, you need to add some whitespace to the
line after an if-statement:
>>> if world_is_flat:<ENTER>
... print "be carefule to be not fall out!"<ENTER>
be carefule to be not fall out!
More information about the Python-list