Problem with game
irstas at gmail.com
irstas at gmail.com
Sat Mar 24 11:32:44 EDT 2007
On Mar 24, 5:20 pm, hollandlu... at gmail.com wrote:
> > File "Python-episode12-Zahlenraten.py", line 15
> > print "Die eingegebene Zahl ist kleiner als die generierte Zahl."
>
> IndentationError: expected an indented block
You should indent stuff inside if-statement deeper than the if itself.
I.e. NOT LIKE THIS:
if x==3:
print x
But like this:
if x==3:
print x
If in your editor it looks like you have done this, the error
is probably that you are mixing tabs and spaces as indentation
and your editor doesn't display tabs as 8 spaces. This leads to
an amazing visual illusion cunnigly developed to turn people away
from Python.
More information about the Python-list
mailing list