[Tutor] python Error:IndentationError: expected an indented block
ziok
berlinlikoa at mynet.com
Tue Jan 9 13:17:55 CET 2007
hi ..
i'm learning python .i have a book with examples. i did the examples for
"if" and have the same errors...
here is the simple code(two of them)
>>> z=['ze','se']
>>> for s in z:
... if s=='ze':
File "<stdin>", line 2
if s=='ze':
^
IndentationError: expected an indented block
>>> z=['ze','se']
>>> while s in z:
... if s=='ze':
File "<stdin>", line 2
if s=='ze':
^
IndentationError: expected an indented block
why why :/
--
View this message in context: http://www.nabble.com/python-Error%3AIndentationError%3A-expected-an-indented-block-tf2596004.html#a8236580
Sent from the Python - tutor mailing list archive at Nabble.com.
More information about the Tutor
mailing list