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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to